Skip to content

Instantly share code, notes, and snippets.

@sturobson
Created March 25, 2013 15:32
Show Gist options
  • Save sturobson/5237974 to your computer and use it in GitHub Desktop.
Save sturobson/5237974 to your computer and use it in GitHub Desktop.
Alfred workflow for creating a new todo in Wunderlist how do I run this in the background so I don't lose focus to Wunderlist (if that makes sense)? Essentially running the script in the bacground.
on alfred_script(q)
set the clipboard to q
tell application "Wunderlist" to activate
tell application "System Events"
keystroke "n" using {Command down} --Command-N
end tell
tell application "System Events"
keystroke "v" using {command down} --Command-C
end tell
tell application "System Events"
key code 76
end tell
end alfred_script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment