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”}
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"}
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"}