10.5: AppleScript для перезагрузки AirPort Base Station
Нижеприведённый скрипт перезапустит ваш маршрутизатор Air Port.
--this script will restart the Airport base station in Leopard
--note there is a different script for Tiger
tell application "AirPort Utility" to activate
delay 2
tell application "System Events"
tell application process "AirPort Utility"
tell window 1
click button "Manual Setup"
delay 8
end tell
tell menu bar 1
click menu bar item "Base Station"
tell menu bar item "Base Station"
tell menu 1
click menu item "Restart…"
end tell
end tell
end tell
delay 1 --imperative
tell window 1 --"AirPort Utility - Extreme Base"
tell sheet 1
click button "OK"
end tell
end tell
say "Restarting Airport"
delay 1
end tell
end tell
tell application "AirPort Utility" to quit