Rutin bir bazda yönlendiricileri yeniden başlatmak için benim bir takıntımdan olmuştur. Ben bunu neden emin değilim, ama bana yönlendirici “taze” tutulur ve en iyi şekilde çalışmaya devam edeceğine inanıyoruz yapar. Belki sadece Windows çalıştıran alışkınım (where you will need to reboot the machine every once in a while).
Anyways, I wrote hacked together a simple AppleScript (Not: this is my first AppleScript ever written) which simulates menu clicks in the AirPort Utility to restart my Time Capsule. The script doesn’t choose which Apple wireless device to restart, as I only have one – the Time Capsule. If you want to use the script and you have multiple wireless base stations (Örneğin. an AirPort Express), you may have to modify the script to choose which one to manipulate.
Here is the simple AppleScript:
tell application "AirPort Utility"
tell application "System Events"
click menu item "Manual Setup" of menu "Base Station" of menu bar 1 of process "AirPort Utility"
click menu item 6 of menu "Base Station" of menu bar 1 of process "AirPort Utility"
click menu item "Close" of menu "File" of menu bar 1 of process "AirPort Utility"
With this script saved, I scheduled it to run automatically every week. Of course you can use cron and set this script as a scheduled job, but why do that when you can use iCal? Here’s a thousand words on how to set the script to run automatically:
You may never have a need to restart your Time Capsule automatically, but if you do, this should give you a starting point on how to go about doing that.