Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Applescript mounting appletalk server

Applescript mounting appletalk server
Thread Tools
Forum Regular
Join Date: Oct 2001
Location: Tbilisi, Georgia
Status: Offline
Reply With Quote
Nov 1, 2001, 10:47 PM
 
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.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:56 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2