Thanks for your reply. Unfortunately, I am in a position where I do not understand what this code is doing.
I’ve thought the code is used to create a plist file with “Key”, “Type”, “Value”…
At this moment nothing is happening, I’ve added the code in the AppleScript editor. When I click the compile button nothing happen, I only get the error message which tells me there are elements that I am missing to run this code as AppleScript program.
I am sorry, unfortunately I am lost.
At this moment I am using the application “Do Something When”. This application has been good to me, however I require something more personalized.
I do have many Access Flash Drive which all have a name started with the prefix “PZV” followed by a number. For example : PZV0001, PZV0002, PZV0003…
I need to perform some actions when a flash drive starting with “PZV” is mounted on my computer. The number 0001, 0002, 0003 correspond to an order number for which I would perform some operations.
When I read the information found in the thread http://macscripter.net/viewtopic.php?id=24748 I thought this is what I needed. Am I right to think this thread would be helpful to me?
Yes, launchd can do what you’re looking for
The code is not AppleScript source code, it’s a property list.
Put the code in a TextEdit and save it with UTF8 encoding in ~/Library/LaunchAgents/WatchingVolumesPath.plist
Omit these two lines, because the launchctl -w command doesn’t set the disabled key to false automatically since 10.6
Disabled
Sorry to go off topic. Can anyone recommend a book that details this process? I see the original thread references Unix for Mac OS X 10.4 Tiger but I can’t find an updated version for a more recent OS. Thanks.