• 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: mount volume, new error from out of the blue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mount volume, new error from out of the blue


  • Subject: Re: mount volume, new error from out of the blue
  • From: Blake Garner <email@hidden>
  • Date: Thu, 13 Oct 2005 15:51:24 -0700

Yea I could do it the hard way but I'm not down..

mount volume "afp://Enter your user ID here:@servername.company.com/Sharename " 
Is what I'm going to use for now.. This seems like a bug to me...

Blake-

On 10/13/05, Mark J. Reed < email@hidden> wrote:
On 10/13/05, Blake Garner <email@hidden> wrote:
Ok so we know how to mount volume with a supplied username and password.

I need it to work without supplying the username and password.

mount volume "afp://server.company.com/ShareName " is returning the "File some object wasn't found" error. What I want is for it to prompt for the username and password...


Well, you can always do it the hard way:

set hostShare to "server.company.com/ShareName"
try
    mount volume ("afp://" & hostShare)
on error
    set username to text returned of (display dialog "Enter username" default answer "")
    set passwd to text returned of (display dialog "Enter password" default answer "")
   mount volume ("afp://" & username & ":" & passwd & "@" & hostShare)
end try

If you're running Tiger, you can add "with hidden asnwer" to the password display dialog so that the entered password is not displayed as the user types it in.

--
Mark J. Reed <email@hidden>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: mount volume, new error from out of the blue (From: kai <email@hidden>)
 >Re: mount volume, new error from out of the blue (From: "John C. Welch" <email@hidden>)
 >Re: mount volume, new error from out of the blue (From: Blake Garner <email@hidden>)
 >Re: mount volume, new error from out of the blue (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: mount volume, new error from out of the blue
  • Next by Date: Re: system events XML suite -- it seems to be caching and holding XML objects
  • Previous by thread: Re: mount volume, new error from out of the blue
  • Next by thread: Re: mount volume, new error from out of the blue
  • Index(es):
    • Date
    • Thread