Skip to content

Instantly share code, notes, and snippets.

@nacyot
Last active May 31, 2016 05:19
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 nacyot/96c51bfc3e093547b1c8302458edcb45 to your computer and use it in GitHub Desktop.
Save nacyot/96c51bfc3e093547b1c8302458edcb45 to your computer and use it in GitHub Desktop.
on alfred_script(keyword)
set the clipboard to keyword
tell application id "DNtp"
activate
end tell
tell application id "com.apple.systemevents"
tell process id "DNtp"
keystroke "f" using {option down, command down}
keystroke "v" using {command down}
keystroke return
end tell
end tell
end alfred_script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment