Script as folder action stopped working under OS 10.12


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.


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"
					delay 1
				end tell
				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)

Not sure what went wrong but I’m even surprised that it worked in 10.9 because mounting a volume doesn’t add anything to your desktop folder. How about moving the folder action to “/Volumes”?

Thanks, will try.

Has worked since pre OS10. There you go.

Yes that worked, thanks!

Believe it or not DJ, trying to set this script up on a second MBP (same age and same OS) and it does not work!!

Any idea as to why? Suggestions?

Sorry just found the bug and fixed it. Thanks.

Could you post your updated code so others can reference if they have similar issues?