Last active
August 29, 2015 13:56
-
-
Save alloydwhitlock/9223308 to your computer and use it in GitHub Desktop.
Paste RSA SecurID Token into frontmost window
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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