Saying the name of a folder on add_item

I have a group of folders that customers upload files to over FTP. Right now I have a simple script to activate the alert sound three time to let me know a file has started uploading. How would I go about getting the folder name into a “say command” without having to create a seperate script for each folder.

Here is the script as of right now…


on adding folder items to this_folder after receiving added_items
	beep 3
	say "New files have been uploaded to (FOLDER NAME HERE)"
end adding folder items to

Any help would be greatly appriciated! :smiley:

You can use the “info for” command, from the Standard Additions:

set folderName to name of (info for this_folder)
say "New files in " & folderName