Re: Hidden password entry in applescript
Re: Hidden password entry in applescript
- Subject: Re: Hidden password entry in applescript
- From: email@hidden
- Date: Wed, 30 Jun 2004 01:03:04 -0400
Thanks so much for your reply! If you are in my neck of the woods I would buy
you some of your favourite beverage. I have been puzzling over this for
some time.
* Graff (email@hidden) wrote:
>
You either need to use an OSAX that provides a password dialog box or
>
you have to use AppleScript Studio and use the password dialog field
>
from Project Builder. There is no native AppleScript password dialog
>
box or field.
Do you know of how to do any of this? Or maybe where to find out
how to do this?
>
However! In the case of the mount volume I believe if you simply leave
>
the password out a password dialog will automatically pop up.
Yes! If you do
mount volume "smb://username:@192.168.1.10/" it will prompt you
for a password. I was trying "smb://email@hidden/" which
doesn't prompt for a password, it just gives a permission error.
It was because this did not work that I thought I needed to prompt for
a username AND password
>
In fact
>
if you leave out the username and the password then the same password
>
dialog box will pop up and ask for both. So you probably don't need
>
most of this script. You only really need the "mount volume" command:
>
>
mount volume "smb://192.168.1.10/"
Yep this will do too but because I really need "smb://192.168.1.10/" & userName & "$" to mount the username$ share the one above is better.
Thank you so much for your help.
Ben Marsh
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.