Hi All,
I just got an iBook 600, and I am running X 10.1, even though my school doesn't support it. To print from my dorm room I need to mount two volumes on two servers via appletalk. I can do this manually with cmd-K, logging in to first one, then the other, but I want to write a script that does the whole thing for me. I am a beginner at applescript. This is what I have:
tell application "Finder"
mount volume "afp:/at/Printer%20Control:HUSC-Unix/Printer" as user name "myname" with password "mypass"
mount volume "afp:/at/House%2fDorm%20Printer%20Control:HUSC-Unix/House%2fDorm%20Printers" as user name "myname" with password "mypass"
end tell
The first server mounts flawlessly, for the second one I get a network file permission error. I suspect that it might be related to the name. The server name and the volume name contains one slash (/) each. I have written them as "%2f", which seems to work well for connecting to the server (if I leave out the volume name, I get a dialog box that lets me pick the volume), but not for the volume name.
What am I doing wrong? Could I somehow write it as a wildcard? Since there seems to be only one volume one the server, mounting any volume beginning with "House" or just any volume would work, but is it doable?
Any help is much appreciated, thanks.