Re: Q: 10.4.2 "Do Shell Script" revision & passwords
Re: Q: 10.4.2 "Do Shell Script" revision & passwords
- Subject: Re: Q: 10.4.2 "Do Shell Script" revision & passwords
- From: Laine Lee <email@hidden>
- Date: Wed, 13 Jul 2005 11:47:48 -0500
Title: Re: Q: 10.4.2 "Do Shell Script" revision
& passwords
On 7/13/05 2:58
AM, "Marc S.A. Glasgow" <email@hidden>
wrote:
> The
installation notes for 10.4.2 update note that there is a
> revision to the "Do Shell Script" command, but doesn't
list what the
> revision is. Can anyone clarify the change?
>
> On a separate quest, how do you pass a "Do Shell Script"
that
> requires a password authentication?
>
Perhaps sudo works as it did in Panther? Could somebody confirm
this?
Here's a script I use for rebooting from a different disk.
set adminpass to text returned of (display
dialog
"Enter your admin password. It will be visible in the
text field." default answer "" default
button
2)
do shell
script
"sudo
bless -folder9 \"/Volumes/Hard Disk/System
Folder\"" password adminpass with administrator privileges
Next line for Panther only
do shell
script
"sudo
bless -folder
\"/Volumes/Macintosh_HD/System/Library/CoreServices\"
-bootBlocks -setOF" password adminpass with administrator privileges
--Next line for Tiger only
do shell
script
"bless --mount \"/Volumes/Macintosh_HD\"
--setBoot" password adminpass with administrator privileges
ignoring application responses
tell application "loginwindow" to «event aevtrest»
end
ignoring
If I desire a
secure text field, I use a Smile dialog or an Applescript Studio
application.
Both of these
solutions are free and place no encumbrances on the user.
I certainly
believe it is time for Standard additions to give us a secure text
field, though.
--
Laine
_______________________________________________
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