Folder Action with Growl Notification

hi,
I am looking for a simple script warning me of file(s) dropped in a folder via Growl.
this folder is placed on a networked (via airport) external hard drive.
I’ve been browsing the forum and the script I found doesn’t work?!


on adding folder items to this_folder after receiving newitems
	try
		set total to the count of newitems
		
		tell application "Finder"
			set the folder_name to the name of this_folder
			activate
			reveal newitems
		end tell
		
		tell application "GrowlHelperApp"
			set the allNotificationsList to {"New Item Notification"}
			
			set the enabledNotificationsList to {"New Item Notification"}
			
			register as application ¬
				"New Items Script" all notifications allNotificationsList ¬
				default notifications enabledNotificationsList ¬
				icon of application "Script Editor"
			
			if total is greater than 1 then
				set item_title to "New files"
				set message to (total as string) & "Files have"
			else
				set item_title to "New file"
				set message to (total as string) & " File has"
			end if
			set message to message & " been dropped in " & folder_name
			
			-- Send message to Growl
			notify with name ¬
				"New Item Notification" title item_title ¬
				description message ¬
				icon of application "Finder"
		end tell
	end try
end adding folder items to

can anyone help please?

Browser: Safari 525.20.1
Operating System: Mac OS X (10.5)

Hi Pascal,

the specified application in the notification line is missing

property appName : "New Items Script"

on adding folder items to this_folder after receiving newitems
	.
		tell application "GrowlHelperApp"
			set the allNotificationsList to {"New Item Notification"}
			set the enabledNotificationsList to {"New Item Notification"}
			register as application ¬
				appName all notifications allNotificationsList ¬
				default notifications enabledNotificationsList ¬
				icon of application "Script Editor"
	.

	.
			-- Send message to Growl
			notify with name ¬
				"New Item Notification" title item_title ¬
				application name appName ¬
				description message ¬
				icon of application "Finder"
		end tell
	.
end adding folder items to

thanks Stefan
it makes sense now looking at the script…
one more time you fixed my problem!