Applescript - creating alias with script

On Mac OS X 10.4.6 -
Does anyone know how to create an Applescript that creates an alias of a file on the desktop or other location? I want to create an alias of a file in the /Applications/Test folder on my startup disk on the desktop. The file is called test1.rtf.

I have tried:
tell application “Finder”
make new alias file to “/Applications/Test/test1.rtf” of startup disk at desktop
end tell

and also

tell application “Finder”
activate
make new alias file to “test1.rtf” of the folder “/Applications/Test/” of the startup disk at desktop
end tell

In each case I get this error:
Can’t get “test1.rtf” of the folder “/Applications/Test/” of the startup disk. Access not allowed.

I suspected the issue was with the permissions to the file or the folder it is in, but making them 777 did not fix the issue. Could it be an issue with the privileges to the startup disk itself?
Does anyone know how to do this?

Thanks!
Bill

hi bill,

how about:


tell application "Finder"
	make new alias to file "test1.rtf" of folder "test" of folder "Applications" of startup disk
end tell

that makes it to the desktop. to specify a location, try something like this:


tell application "Finder"
	make new alias of folder "otherTest" of folder "Applications" of startup disk to file "test1.rtf" of folder "test" of folder "Applications" of startup disk
end tell

assuming, of course, that you make a folder called “otherTest” in your Applications directory.

Thanks Waltr,

Works for me!

Bill