Re: Timeout waiting for server process
Re: Timeout waiting for server process
- Subject: Re: Timeout waiting for server process
- From: John Stewart <email@hidden>
- Date: Tue, 7 Jan 2003 19:14:06 -0500
On Tuesday, January 7, 2003, at 06:08 PM, Michael Grant wrote:
On 1/7/03 4:11 AM, "John Stewart" <email@hidden> wrote:
--script
set pw to text returned of (display dialog "Enter your password:"
default answer "")
set somevar to do shell script "mynextunixcall" password pw with
administrator privileges
-- end script
Setting the password variable isn't actually necessary. Just
set somevar to do shell script "mynextunixcall" with administrator
privileges
will bring up the password dialog.
I've occasionally had problems setting variables to shell scripts in
one
line. In those cases running the shell command in one line and setting
the
variable to the result in the next line has worked.
Michael
You are correct about the admin privileges putting up a dialog, that
was a piece from a script that saves the password as a property so it
only need be entered on the first run of the script. I'll reserve
comment about setting a variable to the result in a second line other
than to say I have had problems with that.
John
_______________________________________________
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.