• 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
Authentication Not Persisting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Authentication Not Persisting


  • Subject: Authentication Not Persisting
  • From: Steve Losh <email@hidden>
  • Date: Tue, 26 Feb 2008 10:31:23 -0500
  • Thread-topic: Authentication Not Persisting

Hi, I¹m working on a script where I may need to turn "Enable Access for
Assistive Devices" off and on.  I¹m currently doing it with the following
lines of AppleScript:

tell application "System Events" to set UI elements enabled to true
tell application "System Events" to set UI elements enabled to false

This works, but the problem is that the user is asked to authenticate twice.
In both cases the requested right is system.preferences.accessibility.  It
seems like once System Events is given that right it shouldn't need to
authenticate again for at least a few minutes, but even if the statements
are run one after another it still asks for a password twice.

Does anyone know of a way to change this so the user is only asked for a
password once?  Thanks.

--
Steve Losh
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

  • Prev by Date: Re: Applescript and unicode
  • Next by Date: Re: More questions about scripting iPhoto
  • Previous by thread: Re: script to open Adobe Illustrator (CS3) and replace certain fonts
  • Next by thread: What's wrong with this call to zip?
  • Index(es):
    • Date
    • Thread