Setting a fixed path

What is wrong with this script?

I am getting a “Finder cannot make /Volumes/mediaserver into type item”

set thePath to “/Volumes/mediaserver”
tell application “Finder” to make new internet location file to “afp://user:pwd@192.168.100.4/vserver/vProjects/xxx” at thePath with properties {name:“vProjects-link”}

Hi,

the parameter at must be an alias or Finder item specifier

tell application "Finder" to make new internet location file to "afp://user:pwd@192.168.100.4/vserver" at alias "mediaserver" with properties {name:"myAFPLoc"}

or

tell application "Finder" to make new internet location file to "afp://user:pwd@192.168.100.4/vserver" at disk "mediaserver" with properties {name:"myAFPLoc"}

Sorry Stephan

I am a novice at this. This is what I tried, but it did not work.

set alias “x” to “/Volumes/mediaProjects1/_project_media_template”

tell application “Finder” to make new internet location file to “afp://user:pwd@192.168.100.4/vserver” at alias “x” with properties {name:“myAFPLoc”}

AppleScript works with HFS paths (starting with a disk name and separated by colons)

set thePath to "mediaProjects1:_project_media_template:"

tell application "Finder" to make new internet location file to "afp://user:pwd@192.168.100.4/vserver" at folder thePath with properties {name:"myAFPLoc"}

Brillant. Thanks!