Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Mounting a Volume (From: Brett Conlon <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.