• 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: unwanted password dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unwanted password dialog


  • Subject: Re: unwanted password dialog
  • From: Alex Zavatone <email@hidden>
  • Date: Mon, 31 Oct 2011 14:09:30 -0500

Wow.  

Am I the only one who hates what Lion has inflicted upon us or are the rest of you not running into problems like this?

I would think that a dialog before the password dialog that explains what the password is being used for would help.

"Please note that if you OK this dialog, the computer will ask for your username and password so that UI Element Scripting can be turned on.  This is required for the script to operate properly."

Or something that politely informs the user what is going on and why the computer is asking for the username and password.

Please note that if the user is running on a system where they do not have their username and password, then this can't work in Lion. :(


On Oct 31, 2011, at 12:03 PM, Luther Fuller wrote:

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
  • Follow-Ups:
    • Re: unwanted password dialog
      • From: Luther Fuller <email@hidden>
    • Re: unwanted password dialog
      • From: Luther Fuller <email@hidden>
References: 
 >unwanted password dialog (From: Luther Fuller <email@hidden>)

  • Prev by Date: unwanted password dialog
  • Next by Date: Re: unwanted password dialog
  • Previous by thread: unwanted password dialog
  • Next by thread: Re: unwanted password dialog
  • Index(es):
    • Date
    • Thread