Re: UI Scripting - Pastor.app
Re: UI Scripting - Pastor.app
- Subject: Re: UI Scripting - Pastor.app
- From: email@hidden
- Date: Thu, 15 Jan 2004 09:24:04 +0000
Daniel,
Thanks for the info.
I have contacted the author a couple of days ago asking if he had any
plans of making Pastor AS aware (I've got no idea how easy/difficult
this may be to implement).
It's not in his immediate plans :(
I suppose if I could convince him to simply adding keyboard shortcuts
to the interface buttons, that could be enough for me to use it via UI
Scripting.
Regards,
DP
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
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.
_______________________________________________
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.