Advertisement

06.27.2003 at 07:17AM PDT, ID: 20662114
[x]
Attachment Details

Mac - Mounting Volumes AppleScript help

Asked by Mekworld in Apple Networking, AppleShare IP, Appletalk

Tags: applescript, mount, volume

After much umming and arhing, and not sure where the problem lies. I've asked this here. If you think it needs to moved, accept my apologies and please move it.

I have very little remaining hair with this problem so please help.

Also I have only been using the Mac for the last couple of days so please please please don't hold this against me especially if I'm being thick.

Scenario :
Windows 2000 Servers set up as a domain. Now the File Services for Mac have been installed so I can get access to the any shares on the File Server from my Mac. Yippee.
Mac has OS 9.2.2 as an operating system.

Now step two : THis is for students, so I need to automate it. Asking the little blighters to map several shares isn't on the cards. So step in some Applescript.

Using Dialog Director, I purloined the script for a username and password (the students details) and mounted using the following.

Mount volume Student_HomeDrive on server File_Server1 as user name Userlogin with password UserPasswd;

This works, great stuff.

Installed Macadministrator as well. Had everything running swimmingly.

Now we finally come to the problem.

Two sites, two files servers. A users area could be on one or the other. Only because of the inter-campus link it is not possible to see the File Server on the other campus.
So the script can no longer work because it can't find the name File_Server1. I can no longer see it in the Chooser. If the Mac is at the same Campus I can.

I can access it manually through using the IP 172.16.1.10.

But now the script doesn't work. So I change the script to the following.

Mount volume "afp://" & LoginUsername & ":" & LoginPassword & "@172.16.1.10/Student_Homedrive"

Network File Permission Error.

I've simpilfied it to :
Mount volume "afp://Testuser:pass@172.16.1.10/Student_Homedrive"

Network File Permission Error.

Remove the password from it :
Mount volume "afp://Testuser@172.16.1.10/Student_Homedrive"

Comes up with the authentication screen, user name in the right place. Enter password works fine, so its not the password and its not a permissiosn problem that I can see.(I've had this verified after two hours to make sure I wasn't going crazy).
And ergo not the scripts.

So I'm stuck i need to map/mount the share/volume with the IP number, through a script and not manually.

So I'm hoping on of you guys can help at least put me on the right track to a solution.Start Free Trial
[+][-]06.27.2003 at 09:51AM PDT, ID: 8814721

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.27.2003 at 10:24AM PDT, ID: 8814944

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.27.2003 at 10:55AM PDT, ID: 8815180

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.27.2003 at 11:16AM PDT, ID: 8815356

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.27.2003 at 03:21PM PDT, ID: 8816866

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.29.2003 at 05:26AM PDT, ID: 8822028

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2003 at 12:57AM PDT, ID: 8847098

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2003 at 01:38AM PDT, ID: 8847290

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2003 at 01:48AM PDT, ID: 8847344

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.09.2003 at 02:05AM PDT, ID: 8883609

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Apple Networking, AppleShare IP, Appletalk
Tags: applescript, mount, volume
Sign Up Now!
Solution Provided By: Petectid
Participating Experts: 5
Solution Grade: A
 
 
[+][-]08.15.2003 at 03:36AM PDT, ID: 9156182

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.15.2003 at 03:16PM PDT, ID: 9163236

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32