RE: GUI scripting for installers which have root privilege
RE: GUI scripting for installers which have root privilege
- Subject: RE: GUI scripting for installers which have root privilege
- From: Scott Babcock <email@hidden>
- Date: Tue, 1 Dec 2009 03:31:20 +0000
- Thread-topic: GUI scripting for installers which have root privilege
This probably has nothing at all to do with privileges. To "click" a button through accessibility, the button needs to have code behind it that responses to the accessibility "click" event. Many older applications lack direct support for accessibility, and the only things you'll be able to manipulate through System Events are standard controls whose accessibility implementation is provided by the OS itself. There's a set of APIs defined in CGRemoteOperation that enable you to create and post mouse and keyboard events that look like the real thing to the target application, but you'll need to create a scripting addition or scriptable application to use them.
-----Original Message-----
Date: Sun, 22 Nov 2009 10:13:28 +0800 (CST)
From: macgeek <email@hidden>
Subject: GUI scripting for installers which have root privilege
To: applescript-users <email@hidden>
Message-ID:
<email@hidden>
Content-Type: text/plain; charset="gbk"
Hi,
I want to use GUI scripting to manipulate app installers. I have already tried some installers. My script works well on most of the installers. But I can't manipulate installers with root privilege (e.g. FileMaker Pro). If I try to click a button, the button seems to be clicked, but nothing happens. I also switched to root account in OSX.The script still doesn't work. Can anybody tell me why? Any help will be appreciated.
Here is a small portion of my script(click a button in the installer):
activateapplication"FileMaker Pro 10"
tellapplication"System Events"
tellprocess"FileMaker Pro 10"
clickbutton"Continue" of window 1
endtell
endtell
Thanks
_______________________________________________
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