• 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: This Used To Work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: This Used To Work


  • Subject: Re: This Used To Work
  • From: Andrew Oliver <email@hidden>
  • Date: Thu, 24 Mar 2005 08:56:43 -0800

On 3/24/05 8:45 AM, "Marconi" <email@hidden> wrote:

> For terminal commands that require root, this used to work:
>
> tell application "Terminal"
> activate
> do script "sudo requires_sudo_or_root" in front window
> delay 2
> do script "my_password" in front window
> end tell

Why are you doing it this way instead of the normal:

do script "requires_sudo_or_root" with administrator privileges password
"mypassword"

?

Replace your six lines with that one and see what you get.

Andrew
:)

 _______________________________________________
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

  • Follow-Ups:
    • Re: This Used To Work
      • From: Marconi <email@hidden>
    • Re: This Used To Work
      • From: Marconi <email@hidden>
    • Re: This Used To Work
      • From: Marconi <email@hidden>
References: 
 >This Used To Work (From: Marconi <email@hidden>)

  • Prev by Date: RE: Issue with AS variable in OS 10.2
  • Next by Date: Re: This Used To Work
  • Previous by thread: This Used To Work
  • Next by thread: Re: This Used To Work
  • Index(es):
    • Date
    • Thread