Re: XCode 2.4 Affects "do shell script"?
Re: XCode 2.4 Affects "do shell script"?
- Subject: Re: XCode 2.4 Affects "do shell script"?
- From: Christopher Nebel <email@hidden>
- Date: Tue, 17 Oct 2006 12:04:34 -0700
On Oct 17, 2006, at 6:47 AM, Marconi wrote:
I have a pair of one line scripts:
do shell script "pmset -a dim 1" password "xxxxxx" with
administrator privileges
and
do shell script "pmset -a dim 60" password "xxxxxx" with
administrator privileges
I use these to set the Energy Saver pref pane to dim the screen in 1
and 60 minutes, respectively.
Each time I invoke these now, I receive a dialog:"System Event
requires that you type your password."
The only change I've made recently was to upgrade my XCode dev tools
to 2.4. That's it.
Was there something in 2.4 that changed the rules?
Curiously, when I run the scrip from within Script Editor, it works
and I get no password dialog.
Exactly how are you running your script when you see the dialog? It's
conceivable that Xcode 2.4 could have changed the rules, but only for
scripts run as part of a project you're running from Xcode. The
general rules for when the dialog appears did change, but back in
10.4. I have a (vague) theory about why this happens; if it's
correct, then you could work around it by explicitly supplying a user
name.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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