Un Applescript para reiniciar una Estación Airport Extreme

productos_airport2.pngSi necesitas reiniciar una estación base a distancia siempre puedes usar un AppleScript para la tarea. El script asume que al menos el ordenador de destino es capaz de ver la estacion base en AirPort Utility, que no siempre es el caso. Puedes usar la utilidad launchd o Cronnix si prefieres programarlo.

Abre el edito de Applescript y copia y pega el siguiente código: guárdalo como una aplicación.

--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

Fuente: MacOSXHints