Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to assign a global keyboard shortcut that will launch a new window of Finder, in a specific directory. I can write a script that'll open a new Finder, but not sure how to make it open in a specific directory.

Any ideas how to do this with either Automator or AppleScript?

In case it's relevant, I have OS X Mountain Lion.

share|improve this question
add comment

1 Answer 1

up vote 7 down vote accepted

As shell script:

open /Users/danielbeck/Documents

As AppleScript:

tell application "Finder"
    # Classic Mac OS syntax
    open alias "Macintosh HD:Users:danielbeck:Pictures"

    # Unix syntax
    open POSIX file "/Users/danielbeck/Downloads"
end tell

Wrap in an Automator service and assign a keyboard shortcut in System Preferences » Keyboard » Keyboard Shortcuts » Services.

Automator screenshot


For a pure Automator solution without script code, combine the Get Specified Finder Items and Open Finder Items actions. Drag & drop the desired folder to the list. Again, save and assign a keyboard shortcut in System Preferences.

Automator screenshot

share|improve this answer
    
Awesome, I went with the "script-less" approach, thank you for teaching me this!! –  Daniel Magliola Jul 31 '12 at 19:19
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.