Re: UI Scripting - Pastor.app
Re: UI Scripting - Pastor.app
- Subject: Re: UI Scripting - Pastor.app
- From: Daniel Jalkut <email@hidden>
- Date: Thu, 15 Jan 2004 01:18:33 -0800
My caffeine insomnia and general curiosity about UI scripting lately
caused me to investigate this.
I installed Pastor and confirmed that "clicking" the button either
through AppleScript or UI Browser doesn't cause any effect in the app.
So I attached with GDB and confirmed that the code is manually tracking
the control clicks with TrackControl. This means that basically the
app is in charge of everything, and if you click the button, it only
does something because the app noticed that you clicked the mouse down
over the button, held it down, and let go with it still there. There
is no "message handling" handling mechanism associated with the button,
so programmatically clicking it from an outside source doesn't do the
trick. I believe an app has to use the Carbon event model to get "free
accessibility support" for its UI elements.
You will have to convince the author of the program to update the code
to support accessibility.
Daniel
On Jan 14, 2004, at 1:05 AM, email@hidden wrote:
Hi all,
Using OSX 10.3.2 and "Pastor 1.4", a non-scriptable password storage
application from http://www.mehlau.net/pastor/index.html
Can anyone tell me why the following script turns the designated button
to "blue" but doesn't actually click it?
tell application "Pastor" to activate
tell application "System Events"
click button "New Entry" of window 1 of application process "Pastor"
end tell
Thanks for any feedback.
--
DP
mailto:email@hidden
visit: http://www.dizzypenguin.com/automac-it/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.