Skip to content

Instantly share code, notes, and snippets.

@alloydwhitlock
Last active August 29, 2015 13:56
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 alloydwhitlock/9223308 to your computer and use it in GitHub Desktop.
Save alloydwhitlock/9223308 to your computer and use it in GitHub Desktop.
Paste RSA SecurID Token into frontmost window
on run {input, parameters}
tell application "System Events"
set frontApp to first application process whose frontmost is true
set frontAppName to name of frontApp
end tell
tell application "SecurID"
activate
tell application "System Events"
keystroke "c" using {command down}
end tell
end tell
tell application "System Events"
set frontmost of process frontAppName to true
end tell
tell application "System Events"
keystroke "v" using {command down}
end tell
return input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment