Re: Javascript wrapper for Applescript
Re: Javascript wrapper for Applescript
- Subject: Re: Javascript wrapper for Applescript
- From: David Andrews <email@hidden>
- Date: Thu, 10 Jun 2004 22:44:13 -0400
On Jun 10, 2004, at 10:55 AM, Dennis Cox wrote:
[snip]
I can tell application "System Events"
...
tell process "RealOne Player"
keystroke " " -- the space key toggles the
pause/play button
...
which works just fine.
Hmm, "Enable access for assistive devices" is not checked in the
Universal
Access pref pane? keystroke works without "Enable access..." checked,
but
anything that would involve using a mouse would be disabled.
It was not and now it is, thanks!
[snip]
How do I "keystroke" a Command-Shift-z?
keystroke "z" using {command down, shift down}
or
keystroke "Z" using command down
This also works, thanks.
After reading your e-mail, it occurred to me that much of this may be
on the web, where I probably should have looked in the first place
(sorry for the lack of imagination) so I searched for "System Events"
in Safari's Google box and found the 1st link to be Apples:
http://www.apple.com/applescript/uiscripting/
where much of your help is also explained with examples and a button
for downloading UIElementInspector that lets you look inside various
objects.
Or, perhaps if I could tell System Events to click the green (+)
button
on the RealOne Player window (which would also zoom the window), how
would I do that?
Don't go there! :-)
No kidding, even UIElementInspector can't look inside the RealOne
Player window and "see" the little buttons that light up in other
windows -- perhaps it's not Cocoa nor Carbon but just a look alike.
[snip]
David
_______________________________________________
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.