About Adam Knight
Location
Austin, TX
Home page/site
http://www.hopelessgeek.com/
Author Biography
Adam Knight is one of the founders of Mac Geekery and is a geek at heart. Programmer by day, hacker by night, his daily life revolves around the Macintosh platform, which he has been a user and programmer for since the early days of System 7 when his LCII replaced his Apple //c.
In-between tech jobs, he’s managed to learn the basics of any web hacker: PHP, MySQL, Perl, Apache, Linux, *BSD, and the intricacies of ./configure —prefix=~/bombshelter/. Today, codepoet is concentrating on blogging again, writing some software for the Mac by himself (including Notae) and for his company (such as Photonic) and has a few other toys coming out soon. Bug him over AIM or email [link fixed].


You don’t have to use launchd for this. you can also attach a folder action to /Volumes/ that will be started when a new mountpoint shows up. It has the advantages of not running as root
launchd items do not always run as root. Read one of the many launchd articles on this site for more about them.
Finder Actions will start only AppleScripts. You can start a shell script from that AppleScript, or start either a shell or AppleScript with a launchd item.
I think the “Peripheral Vision” tool can help you:
http://www.grantedsw.com/p-vision/index.shtml
Post new comment