Need Applescript to add a folder action to a folder when it is created

Hi

I am looking to write an applescript to associate a folder action to a folder when it is created.

Thanks

Hi,

try this


set actionScript to ((path to Folder Action scripts folder from local domain as text) & "add - new item alert.scpt")
tell application "Finder"
	set newFolder to make new folder with properties {name:"testFolder"}
end tell
tell application "System Events"
	attach action to (newFolder as alias) using actionScript
end tell

Thanks for the reply. I’ll try that.

Thanks

It worked like charm.

Thanks a lot

Cheers
Kanag