Fiolder Action: Name of Folder

Hey all,

Objective:
¢ Display folder name of where the folder action is running

Working:


on adding folder items to my_folder after receiving the_files
	set action_folder to my_folder as text
	display dialog action_folder
end adding folder items to

Results:
MacintoshHD:Users:user:test1

Desired results:
test1

Question:
¢ Is there another way to find out just the folder name?
¢ Does anyone have code that can parse between the last two “:”

Any help would be greatly appreciated…


on adding folder items to my_folder after receiving the_files
	set action_folder to name of (info for my_folder)
	display dialog action_folder
end adding folder items to

Thanks stefan for your help… worked great…