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.

This question already has an answer here:

I have a folder called ~/Documents/Work and I'd like to make the Finder shortcut cmd-shift-W go to that folder, similar to how cmd-shift-H goes to the Home folder (and the equivalent shortcuts for Applications, etc., all under the "Go" menu).

Is it possible to do this? And if so, how can I do it?

share|improve this question

marked as duplicate by bmike May 17 at 17:03

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
If you're in another application, do you want the shortcut to open a Finder window to the "Work" directory or do you want the shortcut to only work if you're already in Finder? –  qegal Aug 4 '12 at 22:16

1 Answer 1

up vote 2 down vote accepted

Try this AppleScript:

tell application "Finder"
    activate
    set workFolder to (POSIX file "/Users/yourname/Documents/Work") as alias
    reveal workFolder
end tell

For some reason, the tilde doesn't work in the path, so you have to enter your home folder. Since you want to assign that to a shortcut, download FastScripts which enables you to assign shortcuts to AppleScripts.

Hope this helps!

UPDATE:

You can alternatively make an Automator service to run the Applescript.

  1. Open Automator and select Service
  2. On the left-side menu, select Utilities.
  3. In Utilities, drag and drop the "Run Applescript" action into your workflow
  4. Copy the applescript above into the "Run Applescript" action
  5. Save
share|improve this answer
    
Off topic for this question; but can't applescripts be made into "Services" that can be hot keyed via sys prefs? –  XAleXOwnZX Aug 5 '12 at 1:18
    
@XAleXOwnZX - I think they can through Automator. I'll look into it and get back to you. –  qegal Aug 5 '12 at 1:19
    
That's what i was thinking, but idk if Automator has a drag-n'-drop block thingie to implement your own apple script code. I can't check right now b/c i'm not @ home =/ –  XAleXOwnZX Aug 5 '12 at 1:20
    
@XAleXOwnZX - I figured out how to do it –  qegal Aug 5 '12 at 1:23
    
@XAleXOwnZX - Did that answer your question? –  qegal Aug 5 '12 at 1:30

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