Find clipboard contents as a file?

I’m struggling to find any reference to this but I have a name of a file in the clipboard that I want to find in folder. Its only the name so has no extension, I need to reveal it the file ideally not using spotlight as it would be used to search folders on a server volume. (Windows based)

set theFile to clipContents
tell application "Finder"
	reveal theFile
end tell

What is available in the clipboard, a name my_important_file.scpt or a pathname the:folder:containing:my_important_file.scpt

As far as I know, a simple name isn’t sufficient except if the file in on the Desktop.

If the clipboard is a pathname, use :


set theFile to clipContents
tell application "Finder"
   reveal file theFile
end tell

Yvan KOENIG (VALLAURIS, France) samedi 26 février 2011 19:33:20