make an alias to a folder on a mounted volume via applescript.

Hello there, as with many I’m fairly new to applescript.
I’m trying to create a script that creates an alias on the desktop from a network share.
I have created a script that asks for their credentials and then it connect 3 different network shares. ( all windows shares)
Now I want to create an alias to a specific folder within each share, but I don’t know the language for that.

I was trying the following

tell application “Finder”
make new alias to folder “sample” of folder “students” of folder “volumes”
end tell

in the above the folder I want is “sample” from the mounted volume “students”

If I use a terminal window and go to the root of the drive there is a folder called volumes and within it is the students folder/mount.

I’m assuming I have just a small problem with the structure for where to find the folder.

Any help would be appreciated.

Thanks,

DT

Model: powerbook g4
AppleScript: 2.1.1 (81)
Browser: Safari 523.12.9
Operating System: Mac OS X (10.4)

Hi DT,
if this doesn’t work

set folder_to_alias to "students:sample" as alias

tell application "Finder" to make new alias file at desktop to folder_to_alias

then try this

set folder_to_alias to choose folder

tell application "Finder" to make new alias file at desktop to folder_to_alias

Hope this solves your problem!
Thanks,
Nik

Sorry for the delay in my response that worked perfectly!!!

DT