Folder Actions: Name of file Extension

Hey All,

Objective:
¢ display the file extension of the file dropped


on adding folder items to my_folder after receiving the_files
		set this_file to (item i of the_files)
		set file_name to name of (info for this_file)
		display dialog file_name
end adding folder items to

Result:
The file name.txt

Desired result:
txt

Question:
¢ Is there another way to find out just the file extension?
¢ Is a parser required if so might anyone the sample code?

Any help would be appreciated…

Try this:

on adding folder items to my_folder after receiving the_files
       set this_file to (item i of the_files)
       set file_name to name extension of (info for this_file)
       display dialog file_name
end adding folder items to

thanks again that did it.