• 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: Timeout waiting for server process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Timeout waiting for server process (From: Michael Grant <email@hidden>)

  • Prev by Date: Re: GUI Scripting and "International" Preferences
  • Next by Date: Re: droplet
  • Previous by thread: Re: Timeout waiting for server process
  • Next by thread: [SE2.0 beta] bugs and feature requests
  • Index(es):
    • Date
    • Thread