gui scripting
Kaydell Leavitt
kaydell.leavitt at icloud.com
Fri Jul 12 15:03:53 PDT 2013
Hi Terry,
I think that this will be useful to you:
http://www.macosxautomation.com/applescript/uiscripting/
I don't think that it matters whether Java supports GUI scripting or not. I believe that GUI scripting is for apps that don't support scriptability through AppleEvents. Going through AppleEvents is like having a second user-interface which is especially made for scripting language such as AppleScript that use AppleEvents to control apps.
Using GUI Scripting is resorted too if scripting language needs to control an app that isn't "scriptable".
The scripts in the link above, turn on accessibility, enabling GUI scripting for "non-scriptable' applications.
So, it's better to go through AppleEvents, but if you have to, you can do GUI Scripting.
-- Kaydell
kaydell.leavitt at icloud.com
http://learnbymac.com
On Jul 12, 2013, at 11:01 AM, terry at trwarren.com wrote:
> Hi - I apologize in advance if this is not the appropriate forum for my
> question.
>
> I am trying to understand whether the Oracle jdk port of 1.7 supports gui
> scripting using applescript. I have created a mac os x app via the app
> bundler from Oracle and the app itself works fine but (with assistive
> devices enabled in System Preferences) I cannot access the gui elements of
> the app from applescript even though the application seems to be
> recognized (eg with if process "app name" exists). Anyone had experience
> with this?
>
> thanks
> Terry Warren
>
More information about the macosx-port-dev
mailing list