Re: Mounting a Volume
Re: Mounting a Volume
- Subject: Re: Mounting a Volume
- From: Brett Conlon <email@hidden>
- Date: Fri, 17 Nov 2006 10:39:14 +1000
Thanks for that... I'll keep it on file for when I need it.
Cheers,
Coj
Axel Luttgens <email@hidden>
Sent by:
applescript-users-bounces+brett.conlon=email@hidden
16/11/06 07:23 PM
Please respond to
AppleScript Users <email@hidden>
To
AppleScript Users <email@hidden>
cc
Subject
Re: Mounting a Volume
On 16/11/06 6:42, Brett Conlon wrote:
Yup, that worked a treat. Many thanks, Rick!
Luckily, in this case I wanted to supply the login/password because
everyone uses the same one to get to this server, but, out of interest's
sake if I wanted each person to enter their own login/password, would I
have to provide dialog prompts for both values and replace them in the
"mount volume" command? Or is there another way to be prompted with the
usual login window as you do in the finder, like what happens in another
of my scripts when it mounts our Mac Server?
The "mount volume" command has regressed since 10.3.
The only way I have found to get the interactive dialog back is to use the
"open location" command, for example:
open location "afp://my.server.addr/sharepointname"
But then, as "open location" executes asynchronously without any feedback,
you have to poll for the volume's appearance, for example with the
Finder's command "exists":
if exists disk "sharepointname" then ...
But some error trapping is needed too (the user may cancel the dialog, or
enter a bad login/password, or just ignore the dialog...).
HTH,
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden