Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Enable and disable Assistive Devices via Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Enable and disable Assistive Devices via Terminal
Authored by: jay1 on Feb 09, '06 08:39:41AM
Excellent. I was looking at this problem, and I'm glad you got it sussed. I do however remove the part that says: [b]password pwd [/b] as I'm sure the script will prompt you for an admin password. I'm looking at this from a security point of view. Regards, Jay

---
-J-

[ Reply to This | # ]

Enable and disable Assistive Devices via Terminal
Authored by: gilburns on Feb 09, '06 09:43:48AM
If you just want to just applescript turning on and off GUI scripting, then you can do something like this:

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

The user will get prompted to enter their credentials. No need to use the do shell script.


[ Reply to This | # ]