Now, at the beginning and end of the script I get a dialog asking for a password ...
System Events is trying to unlock Universal Access
preferences. Type your password to allow this.
This just makes a slow script cumbersome to use.
I have traced the origin of these password dialogs to these two instructions
tell application "System Events" to set UI elements enabled to true
and
tell application "System Events" to set UI elements enabled to (item 1 of originalPrefsList)
I always keep UI elements enabled unchecked in the Universal Access prefs pane. I don't think the password dialog would appear if I kept that checked, but I don't want to do that or require my users to do that.
Why does the password dialog appear? and
How can I get my script to work without the dialog?
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives:
http://lists.apple.com/archives/applescript-users
This email sent to email@hidden