First, thank you for taking the time to read this!
Here is what i’m trying to do… I want to write a simple script that checks to see if my MacBookPro is on it’s home network, and if so, to run the script that mounts the network drives. If it’s not on the home network, then run another script that mounts them with SSH/SSHFS.
The two mounting scripts work great - no help needed there.
Where i’m having the problem is…
tell application "Internet Connect" set vNetwork to network name of AirPort configuration 1 Display dialog "Current Network: " & vNetwork end tell
i’ve also tried:
- signal level; result = 0
- network type; result =
- AirPort power; result = 0
Do i have to do something different since it’s an Intel Mac?
The book i’m reading is called AppleScript The Missing Manual. They have a section in there on this and i’ve typed word for word and still nothing.
Model: MacBookPro Duo Core 2 2.16 2g Ram
Browser: Safari 419.3
Operating System: Mac OS X (10.4)