Skip to content

Instantly share code, notes, and snippets.

@imbriaco
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imbriaco/b00194b62eb330bdffa9 to your computer and use it in GitHub Desktop.
Save imbriaco/b00194b62eb330bdffa9 to your computer and use it in GitHub Desktop.
Shortcut hack for "Add to Wunderlist" in Safari on OSX Yosemite.

This script tells the OSX UI server to click the "Add to Wunderlist" menu item. This is a horrible hack because the system preference to add shortcuts does not appear to work on the Share menu for Safari, at least with Yosemite. I combined this with a very simple Alfred workflow that is bound to a hotkey in order to trigger the script when I hit CMD-Y in Safari. It feels super crude, but it does ultimately do what I want.

Is there a better way?

tell application "System Events" to tell process "Safari"
click menu item "Add to Wunderlist" of menu 1 of menu item "Share" of menu 1 of menu bar item "File" of menu bar 1
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment