Re: Intel UI scripting
Re: Intel UI scripting
- Subject: Re: Intel UI scripting
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 22 Jun 2006 18:58:25 -0700
- Thread-topic: Intel UI scripting
Title: Re: Intel UI scripting
On 6/22/06 6:40 PM, "Scott Doenges" <email@hidden> wrote:
So evidently I need to come up with a better way to automate enabling this setting (I also plan on filing a bug report via ADC, just to make sure Apple is aware of this potential problem).
Just possibly it's not a bug but an important security feature fixing a big security hole: the whole point is that you're not supposed to be able to enable GUI scripting programmatically, since that could permit the introduction of countless viruses on the Mac. The user is always supposed to to the enabling. Bill Cheeseman (I think) has a sample somewhere (maybe in the ReadMe for UI Browser) that shows how to put up an alert, open the correct Universal Access pane of System Prefs for the user to do the enabling - if she so wishes - and then choose to rerun the script. It's easy enough to figure this out for yourself. However (especially since it works OK on PPC machines the way you're doing it), it's probably just an accident that it doesn't work on Intel...
Any suggestions for better methods of creating the proper file? I obviously can't use UI scripting to go in and check that box for me! :-) Does anyone have suggestions for shell commands that can write text into a file?
You don't need shell commands. use 'open for access with write permission' and 'write' commands from Standard Additions, which will create the file too without involving the Finder.
--
Paul Berkowitz
_______________________________________________
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