Folder Actions: Change FIle Type

Hey all,

I’m trying to create folder action script that changes the file type to Moov.

But i’m thinking I"m missing something… since it’s not working

But have


on open droppedItems
	tell application "Finder"
		set file type of (item 1 of droppedItems) to "MooV"
	end tell
end open

Any help would be appreciated

try this…

property fileType : "MooV"

on open (theList)
	tell application "Finder"
		repeat with theItem in theList
			set file type of theItem to fileType
		end repeat
	end tell
end open

Tom

Operating System: Mac OS X (10.6)

Thanks for the effort.

But unfortunately it doesn’t work…

If you have the developer tools installed, you might try…

Execute this from inside the Terminal.

Questions:
¢ This does works from the terminal but how do I get it to be an folder action item? do shell script doesn’t seem to work
¢ is there to make it more genetic? so you don’t have to define the path?

thanks.