Hi
I have this folder action script that works fine under 10.9. It is normally attached to the Dektop.
I just moved to 10.12 and I cannot get it to work. What is wrong?
It is supposed to respond to the arrival of a disk image (Hanuman) on the desktop and than open the enclosed file as well as quit Truecript.
Thanks.
on adding folder items to this_folder after receiving added_items
tell application "Finder"
repeat with tItem in added_items
set tName to the name of tItem --get the name of each added_items
if tName = "Hanuman" and class of (item tItem) is Volume then
tell application "TrueCrypt"
quit
delay 1
end tell
activate
open document file "Hanuman.fmp12" of tItem
exit repeat
end if
end repeat
end tell
end adding folder items to
Model: MBP
Operating System: Mac OS X (10.10)