• 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: 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

References: 
 >Re: Mounting a Volume (From: Axel Luttgens <email@hidden>)

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