This file contains hidden or 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
tell application "Finder" | |
set p to path to desktop -- Or whatever path you want | |
make new folder at p with properties {name:"ScreenCaps"} | |
end tell | |
do shell script "defaults write com.apple.screencapture type -string png" | |
do shell script "defaults write com.apple.screencapture disable-shadow -boolean-neg" | |
do shell script "defaults write com.apple.screencapture location ~/Desktop/ScreenCaps" | |
tell application "System Events" | |
move (every file of desktop folder whose name starts with "Screen Shot") to "~/Desktop/ScreenCaps" |
This file contains hidden or 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
do shell script "networksetup -setairportpower en0 off" | |
tell application "Cisco AnyConnect Secure Mobility Client" | |
activate | |
end tell | |
repeat until application "Cisco AnyConnect Secure Mobility Client" is running | |
delay 1 | |
end repeat | |
tell application "System Events" | |
repeat until (window 1 of process "Cisco AnyConnect Secure Mobility Client" exists) | |
delay 1 |
This file contains hidden or 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
set the clipboard to "" | |
set appname to "SecurID" | |
set thePin to RsaTokenPin() | |
activate application appname | |
do shell script "networksetup -setairportpower en0 on" | |
tell application appname | |
activate |