Re: Script for auto mounting a remote server volume?
Re: Script for auto mounting a remote server volume?
- Subject: Re: Script for auto mounting a remote server volume?
- From: "Tim Kendall" <email@hidden>
- Date: Wed, 26 Feb 2003 17:37:25 -0600
Mike, the first one I sent is for Win2k of OSX servers or NT4 running
Extreme-Z with Apple file sharing over ip
Try this:
tell application "Finder"
mount volume "sharex" on server "Servername" as user name "tim" with
password "letmein"
End tell
Here is the dictionary, it is under the Scripting additions > Standard
Additions
mount volume: Mount the specified AppleShare volume (from File Commands)
(defined in: Standard Additions)
mount volume string -- the name or URL path (starting with afp://9) of
the volume to mount
on server string -- the server on which the volume resides
[in AppleTalk zone string] -- the AppleTalk zone in which the
server resides
[as user name string] -- the user name with which to log in to the
server; omit for guest access
[with password string] -- the password for the user name; omit for
guest access
On 2/26/03 5:04 PM, "Galke, Mike" <email@hidden> wrote:
>
Tim,
>
>
Thanks, I appreciate you help. However, I just tried it, and an error message
>
comes up saying,
>
>
"Finder got an error: Network file permission error."
>
>
I wonder if this had anything to do with the fact that I'm trying to mount an
>
NT 4 server volume?
>
>
Thanks anyway though Tim.
>
>
Mike
>
>
> ----------
>
> From: Tim Kendall
>
> Sent: Wednesday, February 26, 2003 5:54 PM
>
> To: Galke, Mike; email@hidden
>
> Subject: Re: Script for auto mounting a remote server volume?
>
>
>
> Mike
>
>
>
> tell application "Finder"
>
> --activate
>
> mount volume "afp://userName:email@hidden/volume_name"
>
> end tell
>
>
>
>
>
>
>
> On 2/26/03 3:24 PM, "Galke, Mike" <email@hidden> wrote:
>
>
>
>> Greetings Folks,
>
>>
>
>> I know I saw it somewhere once before, but I can't seem to find it now.
>
>>
>
>> There was a one or two line script that included usernames and p/w's. Does
>
>> anyone know the correct syntax, as I've been trying it now for about 3
>
>> hours,
>
>> and I'm getting ready to throw the rope up over the rafters.
>
>>
>
>> Thanks,
>
>> Mike Galke
>
>> _______________________________________________
>
>> applescript-users mailing list | email@hidden
>
>> Help/Unsubscribe/Archives:
>
>> http://www.lists.apple.com/mailman/listinfo/applescript-users
>
>> Do not post admin requests to the list. They will be ignored.
>
>
>
> -Tim
>
>
>
>
>
>
-Tim
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.