Getting File Name of Alias

How do I get the file name of an alias?

tell application "Finder" to set aName to name of alias file "path:to:alias"

Thanks, Rob, but I don’t think that fits my situation.

I am creating a droplet with an open handler. Since a list of aliases is the argument sent to the open handler, I am trying to get the file name - not the path - of each alias.

When I try to get the name of an alias, I get the error “can’t get name of” followed by the path to the file.

Maybe we are confusing a Finder alias file with an AppleScript alias. Do you want to get the name of files that are dropped onto your droplet? Does this droplet produce a dialog with the name of each item dropped onto it? Is that what you are attempting to do?

on open files_
	repeat with file_ in files_
		tell application "Finder" to set name_ to name of file_
		display dialog name_
	end repeat
end open

– Rob (confused in Ohio)