• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mounting a Volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

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

  • Prev by Date: Re: Mounting a Volume
  • Next by Date: Address Book.. Group and person
  • Previous by thread: Re: Mounting a Volume
  • Next by thread: Re: Mounting a Volume
  • Index(es):
    • Date
    • Thread