• 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: Michael Slomski <email@hidden>
  • Date: Tue, 01 Nov 2011 17:37:53 +0100
  • Thread-topic: unwanted password dialog

Am 01.11.11 17:14 schrieb "Luther Fuller" unter <email@hidden>:

On Nov 1, 2011, at 4:43 AM, Axel Luttgens wrote:

Are you really sure to be able to *change* the value of "UI elements enabled" from AppleScript in Leopard and Snow Leopard, without having to provide any credentials?

Yes. I only discovered the problem when I tested the script in Lion. Prior to that, in previous systems, I had been able to simply ...

tell application "System Events" to set UI elements enabled to ...

with no problem and no password.

I have looked at the dictionary for Printer Setup Utility and found ...

print v : Print a document.

print list of file or specifier : The file(s), document(s), or window(s) to be printed.
[with properties print settings] : The print settings to use.
[print dialog boolean] : Should the application show the print dialog?

which suggests that I can print a document without a print dialog which avoids having to use UI scripting to click buttons. So, I tried this ...

tell application "Printer Setup Utility"
print (window 1 of application "Mail") with properties {target printer:"CUPS-PDF"} without print dialog
end tell

and except for one little thing ... it works! And that one little thing happens to be the print dialog.
IT APPEARS! #$&! and therefore requires UI code to click the button.

Does anyone know any variations on a theme that might get Printer Setup Utility to work correctly?

_______________________________________________ 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






Michael Slomski

Computerkartographie M. Slomski
Kartographie • Systemberatung & Betreuung
für Apple Macintosh

Email:
email@hidden
 _______________________________________________
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

References: 
 >Re: unwanted password dialog (From: Luther Fuller <email@hidden>)

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