Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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