unwanted password dialog
unwanted password dialog
- Subject: unwanted password dialog
- From: Luther Fuller <email@hidden>
- Date: Mon, 31 Oct 2011 12:03:49 -0500
I have a script that uses Mail and CUPS-PDF to convert .emlx files to .pdf files. It's slow, but it's way better than doing this manually by using "print to pdf" in Mail. The script uses a couple of lines of UI scripting via System Events. It works in Leopard and Snow Leopard. I just installed CUPS-PDF in Lion 10.7.2 and tested the script.
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