Can I view hidden files and directories from the Open or Save As dialog boxes without making them visible in the Finder? [duplicate]

You don’t need an Apple Script or Visual Basic macro to do this as you can do it using a simple keyboard shortcut from within the Open or Save As dialogue windows. Using MS Word as an example:

  1. In MS Word go to File > Open… or File > Save As…
  2. When the window opens press the shift . keys to toggle the display of hidden files on
  3. Now you’ll be able to see hidden items and, if supported by the application you’re using, select them as well

Not only does this approach have no effect on the Finder, it also automatically toggles hidden files off again once you've saved or opened the file. In other words, the next time you’re in one of those dialog windows you won't see hidden files unless you want to (in which case you'd just use the shortcut again).

NOTE: The above keyboard shortcut also works within the Finder to toggle hidden files on or off more generally. Of course, if you’re using it within the Finder then the setting remains until you change it again.