Creating an alias file in AppleScript

Is there a way to create an actual alias file using AppleScript?

I have a script that renames and “files” document files, and I would like it to create an alias to the file on the desktop.

I can’t seem to figure out a way to do it…

Thanks in advance,

This should help.

set x to alias ((path to home folder as text) & “Documents”)
set y to path to desktop

tell application “Finder” to make alias at y to x

There is some confusion between ‘alias’ (a kind of path to an item) and ‘alias file’ (a file that points to another file)

That did the trick…

Now if only one of my AppleScript books even mentioned the “make alias” to differentiate it from the alias file term. Oh well…

Thanks! I will add your script of AS snippets that I refer to when my brain needs a kickstart.

–Tom McKenna