Jump to content

Show OS X ‘tags’ with a hotkey?


Recommended Posts

Posted

I'm a fanatic hotkey user. I use Alfred to open apps, files and folders with hotkeys. But I can't get a hotkey connected to an OS X tag.

 

What I want? Open a Finder window with a specific tag selected in the Sidebar… triggered by a hotkey.

 

Can this be done by Alfred 2.5?

Posted (edited)

set up a hotkey that calls this applescript:

set the search_string to "tag:my-tag"
tell application "System Events"
delay 1
keystroke " " using {option down, command down}
delay 1
keystroke search_string
keystroke return
end tell
Edited by dfay
Posted (edited)

it's not the most graceful way to do it but Finder doesn't let you Applescript saved searches (my first thought for a solution).  Unfortunately since it relies on scripting keystrokes, you may need to lengthen the delays for it to work.  Even with delay 3 instead of delay 1 it's not working consistently for me.  

Edited by dfay
Posted

Thanks! I'll try it out. It would be great if searchng for a tag could be a standard 'action' in Alfred, like opening a file or folder.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...