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.

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
    
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
add comment

1 Answer

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
show 1 more 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.