Folder action to start app on detecting named USB volume
Hi,
I'm trying something really simple, but struggling (bear of little brain...)
I am trying to write a folder action that will detect when a specific volume on a USB HDD is added, and then launch an app that I have written in AppleScript.
I have this so far, but it won't work, and I am REALLY not a software man;
on adding folder items to Volumes after receiving <specific folder name>
tell application "Finder"
if name of <specific_folder_name> is "MobileVAULT" then
open application "USB MobileVAULT"
end if
end tell
end adding folder items to
the app "USB MobileVAULT" works a treat (decrypts the volume without the user having to add his password), but I just need to automate the process.
[to give you the whole picture, the user will be issued with a USB HDD, encrypted with TrueCrypt. The app 'USB MobleVAULT' will mount this volume without further interraction (password etc) if the user runs the app. I really want the user to not have to do anything - a USB HDD would normally mount itself and appear in Finder, which is what I want to achieve by using the Folder Action process to call the [USB MoblieVAULT' app]
Thanks
Browdee
MacBook Pro, Mac OS X (10.6.7)