Re: mount volume, new error from out of the blue
Re: mount volume, new error from out of the blue
- Subject: Re: mount volume, new error from out of the blue
- From: "Mark J. Reed" <email@hidden>
- Date: Thu, 13 Oct 2005 18:02:23 -0400
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...
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