Put file alias into a new folder?

Beginner here!

My goal is to put a file’s alias into a folder. What I’ve accomplished so far is to create a copy of the file in the folder, not an alias.

Here’s what I have so far:


tell application "Finder"
	make new folder at desktop with properties {name:"photoTemp"}
       set folderRef to "Macintosh:Users:Ed:Desktop:photoTemp"
	set fileRef to alias "ExternalHD::scanned_slides:box_1_81:b1_1.jpg"
	move file fileRef as alias to folder folderRef
end tell


I end up with a new folder on my desktop with a copy of the file b1_1.jpg, all 432 kb of it, not it’s alias.

I know it’s something simple, so any help will be much appreciated. I’ve been stuck on this problem for awhile.

Thanks!

Try something like this, tearfd:

tell application "Finder"
	set folderRef to (make new folder at desktop with properties {name:"photoTemp"})
	set fileRef to alias "ExternalHD::scanned_slides:box_1_81:b1_1.jpg"
	make new alias file to fileRef at folderRef
end tell

Kai, thank you very much!