"the action run applescript encountered an error"Īnd it only works if the app is completely close from the beginning. So i just created an application in automator with Launch Application (Cisco Any Connect) > Run Applescript (your script).īut i get this error even though it still works. It shows up via terminal ls command but in the finder it is hidden for some reason. This is probably because i couldn't find the scripts folder in /library mentioned in step 1. I had to create an app in workflow and added the "launch application " step before the run applescript step to get it to work. Repeat until (window 2 of process "Cisco An圜onnect Secure Mobility Client " exists) Tell process "Cisco An圜onnect Secure Mobility Client " Repeat until (window 1 of process "Cisco An圜onnect Secure Mobility Client " exists) Repeat until application "Cisco An圜onnect Secure Mobility Client " is running Tell application "Cisco An圜onnect Secure Mobility Client " Enable Applescript Editor and System UI Server Open Security & Privacy System Preferences, go to Privacy, Accessibility Substitute "" and "redacted" for your VPN server and password Place in ~/Library/Scripts and enable the Applescript menu via the Applescript Editor
0 Comments
Leave a Reply. |