PDA

View Full Version : start a scripts when Ipod plugged


sbiner
07-05-2006, 10:56 AM
Hello,

I have a script (a bourne shell script) which I use to backup up directory from my Mac on my Ipod mini. It works fine but I would like for the script to start automatically when my Ipod is plugged (i.e. when it is mounted under /Volumes).

I could see a way to do this using crontab to regularly check if the Ipod is mounted but I am wondering if there is a more elegant solution to this.

Any idea?

Thanks.
Sebastien.

bramley
07-05-2006, 11:45 AM
You can use a folder action and Applescript to start your script as detailed in this thread: http://forums.macosxhints.com/showthread.php?t=28720