Skip to content

Instantly share code, notes, and snippets.

@nall
Created September 8, 2009 18:07
Show Gist options
  • Save nall/183104 to your computer and use it in GitHub Desktop.
Save nall/183104 to your computer and use it in GitHub Desktop.
-- Applescript to save the current clipboard, send STUNTAZ!!! to the current text area
-- and restore the clipboard
--
-- Jon Nall
-- 08Sep2009
set theCommand to "STUNTAZ!!!"
set theOldClipboard to the clipboard
set the clipboard to theCommand
--delay 0.2
tell application "System Events"
keystroke "v" using {command down}
end tell
set the clipboard to theOldClipboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment