Re: Mounting a Volume
Re: Mounting a Volume
- Subject: Re: Mounting a Volume
- From: Axel Luttgens <email@hidden>
- Date: Thu, 16 Nov 2006 09:23:06 +0100
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