Authentication Not Persisting
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