Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Launch IM apps after network connection is established' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Launch IM apps after network connection is established
Authored by: cheesy9999 on Aug 13, '04 05:28:40AM
I use a cool little utility called Peripheral Vision (not free...but cheap...$7 I believe) that monitors all sorts of connections (all USB, FireWire, Bluetooth, AirPort, Ethernet, File Volumes) and lets you run a script or application whenever a specific one is connected or disconnected.

I have it set up so when an AirPort connection is established at my college it automatically launches the VPN client and connects. I also have one for my iPod where it checks to see when iSync was last run and if it hasn't been run in the last 12 hours it syncs then quits iSync (it was getting annoying when it would sync every time it was connected). It also launches Pod2Go and PodQuest when an iPod is connected, then closes them when disconnected so the menus aren't taking up my screen. Here are the scripts:

iPod Connected:

tell application "Pod2GoMenu"
activate
end tell
tell application "PodQuest"
activate
end tell
tell application "iSync"
if (current date) - last sync > 5 * hours then
synchronize
repeat while syncing
delay 5
end repeat
end if
quit
end tell


iPod Disconnected:

tell application "System Events"
if (name of processes) contains "Pod2GoMenu" then
tell application "Pod2GoMenu"
quit
end tell
end if
if (name of processes) contains "PodQuest" then
tell application "PodQuest"
quit
end tell
end if
end tell


I'm no AppleScript pro so their may be a better way of doing these things...

[ Reply to This | # ]