|
#1
| |||
| |||
| I am trying to get applescript to checck and see if there are any active network ports before it continues with the script. Does any when have any insight on if this is possible? Background: The script I use connects to a server that i use to backup, and I use iCal to schedule when to run it. But the problem is I only want it to run the script if it is connected to a network. I hate error messages popping up. |
|
#2
| ||||
| ||||
| I don't know a way to check for network ports - though there probably is one. However, you could just use a try/error/end try structure instead. It might be simpler.
__________________ OS X 10.4 G5 Dual 2GHZ / 160GB / 1GB RAM / Superdrive Apple 20" Cinema Display SmartDrive 120GB Firewire HD Maxtor 250GB SATA Visit my wife's eBay store !! http://stores.ebay.com/Catchy-Creations-by-brendaonline Now pining for a MacBook Pro... |
|
#3
| ||||
| ||||
| i have no real experience with applescript, but why not just try to ping the server you're accessing, if it succeeds, go ahead using the try/error/end method mentioned above. then if the OTHER machine is down, or your net(work) connection is broken/slow/cut off from that server, it wont go nuts.
__________________ PowerMac G5 Dual 2.0Ghz | 1Gb | 250Gb | Bluetooth | NVidia GeForce 6800 Ultra DDL 256Mb | 20" Cinema Display | MX1000 Wireless Laser Mouse | OS X 10.3.9 PowerMac G4 400Mhz | 832Mb | 40Gb + 120Gb | OS X Server 10.3.8 - Web Dev, Proxy, Mail, NAT, Firewall, Backup Netgear Gigabit Switch | Sony Ericsson P910i Smartphone | iPod Colour 60Gb |