Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Finder's Open/Save File dialog is actually very dumb (in terms of flexibility). When I look for a file or its location, I can probably find it much faster using Alfred.

However, in many cases, you just have to use that dialog. Not particularly when you open files, but for example when you specify the place to save them.

As I'm a keyboard-only user (at least for 99% of the time), I find it tedious to launch Alfred, and reveal the file/directory in Finder and drag it (or its proxy icon) to the dialog in order to open/save it.

Is there any way I can get a keyboard-only, fuzzy-matching style file/folder selection mechanism for this dialog?

I could imagine using Alfred and AppleScript for that, but I don't know where to start. The end result would be that I could just select the appropriate file or folder via Alfred.

Note that:

  • I have the Alfred Powerpack, so AppleScript is possible.
  • I know Alfred has an "Open with…" action. This is not the same.
  • I know I can go to folders with G, but it's weak in comparison to what a real shell offers.
  • I know you can Spotlight-search in that dialog, but I prefer Alfred's capabilities.
share|improve this question
    
Neither Alfred or the file dialogs are scriptable, so I doubt you could achieve anything less than monstrous with just AppleScript. –  Lri Mar 15 '12 at 16:03
    
I didn't know dialogs were absolutely a no-go here, but I'm not limited to AppleScript. The Alfred part shouldn't be the problem, I guess. –  slhck Mar 15 '12 at 16:08
add comment

1 Answer 1

Once you find the file using Alfred, you can copy its path to the clipboard and paste that path into the Go to Folder tool of open/save dialogs.

Find your file in Alfred, press the right arrow key to view the list of operations for that file, the up arrow key to go to the last option (Copy path to clipboard), and then the enter key to activate that option.
Switch back to the open/save dialog, press cmd-shift-g to open the Go to Folder dialog, paste the path in, and hit enter. The file will be selected and you can hit Enter to open/save.


If you're interested in getting some more flexibility out of Open/Save dialogs, I highly recommend Default Folder X. It's immensely powerful and customizable and could eliminate the need for workarounds like this.
$35, 30 day trial

share|improve this answer
    
Unfortunately, not all Go to Folder dialogs accept the pasted path when it's copied from Alfred (e.g. Photoshop). Also, the path is single-quoted and I'd need to strip the quotes for this to work. –  slhck Mar 20 '12 at 17:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.