Want to know how to find the alias of a random file using applescript

Hi, I was wondering if I can find the alias for any file that i single clicked on using applescript.

I searched online, and there is not much I can take of.

So, for example in applescript I "set fileToFind to alias (....)" but this alias is completely dependent on the user single click on the file. So I don't know this alias exactly, is there a way so that I can set this "fileToFind" variable to an appropriate alias of the file that I single clicked on?

Has invited:

howapple - hello

Favor from:


tell application "Finder" to get selection as alias


To reply to a question, please Login or registered