Notification when a device is mounted [Moved to Xcode]

Hi All

Is there a method whereby an Applescript application (written in AppleScript Studio) and using a GUI can be informed when a device such as an MP3 player is mounted on to the system?
I notice that iTunes will display the contents of an audio CD when it is inserted into the drive so I think that some kind of event is being fired.

Thanks

Paul

There is Digital Hub Scripting (not sure if this will detect any kind of device, though):
http://www.apple.com/applescript/digitalhub/

Also, perhaps PreFab’s UI Actions could help (you should read the documentation for more details):
http://osaxen.com/files/uiactions1.1.1.html

Otherwise, you could allways setup an allways-running script, checking the stuff in the “/dev” dir, till something interesting arrives to the system… (as the Insert CD Blah you can see in some games or Insert Diskette Foo in multi-disk installers)