You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Modifications : 1.1 - 21/06/13 - CR - added a coouple of lines for it to hide bento, wait while I sync then close bento and switch off the wifi again
# Description : This turns on my Airport Card, then loads bento and enters my password
-- Turn the wifi airport card on
do shell script"networksetup -setairportpower en1 on"
--Set the Variable to hold my Bento Password, with the password it didn't seem to like the Capital M so I have put it in twice as it ignores the first one
setpwordto"password"
--open Bento
tellapplication"Bento"toactivate
--Sleep while the application loads
delay5
--Then Enter the password and tab through to the Submit button and click on it
tellapplication"System Events"
keystroke pword
keystroketab
keystroketab
keystroketab
keystrokespace
end tell
-- Hide the Bento Screen - 1.1
tellapplication"System Events"
set visible ofeveryprocesswhose visible istrueandnameis"Bento"tofalse
end tell
-- Wait for one minute - 1.1
delay60
-- Quit Bento -1.1
tellapplication"Bento"to quit
-- Turn the wifi off - 1.1
do shell script"networksetup -setairportpower en1 off"