• 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: authentication window and UI applescripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: authentication window and UI applescripting


  • Subject: Re: authentication window and UI applescripting
  • From: Bill Cheeseman <email@hidden>
  • Date: Fri, 22 Oct 2004 14:25:16 -0400

on 2004-10-22 10:59 AM, Martha Espinosa at email@hidden wrote:

> I created a UI script that checks the "Security" preference pane to
> see if "Require password to unlock each secure system preference" is
> on.
>
> If it is on then I click on the lock... It brings up the
> Authentication window but if I forget about it it gives me an
> applescript error...
>
> How would I go about adding error check for authentication window?

Are you asking how to prevent an AppleScript timeout error from occurring if
you don't dismiss the authentication window within the default AppleScript
timeout period (which, as I vaguely recall, is 60 seconds)?

The time-honored way to do this is to put the relevant script statements in
a 'with timeout' block specifying some very large, essentially infinite
period of time.

Another technique might be to put the script statements in an 'ignoring
application responses' block, letting the script quit without waiting to see
what you do with the authentication dialog. I'm not sure whether that will
work.

A more sophisticated technique would be to set up an 'idle' handler or a
tight loop with a 'delay' command in it, and dismiss the dialog from the
script with some default input after a set period of time has passed without
user intervention.

--

Bill Cheeseman - email@hidden
PLEASE NOTE NEW E-MAIL ADDRESS!


 _______________________________________________
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

References: 
 >authentication window and UI applescripting (From: Martha Espinosa <email@hidden>)

  • Prev by Date: Re: Legacy conversion of Quark 4 to InDesign 2 files question
  • Next by Date: Re: Creating a chart or graphic line...
  • Previous by thread: authentication window and UI applescripting
  • Next by thread: [ANN] Oct. Boston AppleScript Users Group Meeting
  • Index(es):
    • Date
    • Thread