emiel Posted October 7, 2014 Posted October 7, 2014 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?
dfay Posted October 7, 2014 Posted October 7, 2014 (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 October 7, 2014 by dfay
dfay Posted October 7, 2014 Posted October 7, 2014 (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 October 7, 2014 by dfay
emiel Posted October 8, 2014 Author Posted October 8, 2014 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.
dfay Posted October 8, 2014 Posted October 8, 2014 (edited) There is an excellent Tag workflow here: http://www.alfredforum.com/topic/3383-mavericks-tags-file-and-email-tagging-with-alfred-2-updated-to-v14/ if you want to work with results in Alfred rather than a separate Finder window. Edited October 8, 2014 by dfay
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now