Skip to content

Instantly share code, notes, and snippets.

@nacyot
Created May 31, 2016 05:42
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/936b3510c467d3b1599e0400627617d5 to your computer and use it in GitHub Desktop.
Save nacyot/936b3510c467d3b1599e0400627617d5 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 {shift 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