Welcome to MacForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to hit the 'Step Frame' button in "DVD Player" with ap..

 
   Macintosh computer (Home) -> Apple Scripts RSS
Related Topics:
Next step in AppleScript in OS X 10.4 - I'm trying to figure it out. Some of the text implies that they've restored the feature but the user interface in the picture suggests that it's more like to assemble several..

activate step not executing on certain Macs - This one has me stumped. I'm hoping someone has the answer, or even a clue to point me in the right I have a script that retrieves the name of the currently selected box in and tries to find a matching record in a

Quark 4,5,... How to check which frame is the frontmost - Hi, how can I check in Quark which frame is the frontmost ? Thanks in advance Thomas

Scripting a button click - First off, I'm not too in Here's what I need to do: I'm running a program called HotLine Server It's a free program that creates a community for exchange of files and chat. It has a window with..

How to put a dot inside the close button? - I'm referring to the left-most button in the title bar of a window - most apps put a dot inside it when the documents are modified but not saved. Is there a quick pointer showing how to change it inside Xcode? Thanks!
Next:  Address Book import vCard  
Author Message
Greg Ercolano

External


Since: Apr 14, 2004
Posts: 6



(Msg. 1) Posted: Sun Apr 27, 2008 3:50 pm
Post subject: How to hit the 'Step Frame' button in "DVD Player" with applescript?
Archived from groups: alt>comp>lang>applescript (more info?)

I'm trying to push the "Step Frame" button on DVD Player's
little remote controller window via AppleScript.

I do have "System Prefs | Universal Access | Enable access for assistive devices"
enabled, and have tried the following while DVD Player was running and in "Pause":

* The "UI Element Inspector" shows the controller's window
to be "AXunknown", the same as the player's other windows,
so without a name, not sure how to get AS to focus on that window.

* "Automator" shows that only play/stop available, not "step".

* DVD Player has no hotkeys or menu options for 'step frame',
so I don't think I can attack the problem from that angle.

* I tried carefully positioning the remote controller window at
a fixed location on the screen, hoping I could send the "Step Frame"
button a mouse click event given an absolute X/Y location, eg:

tell application "System Events"
tell process "DVD Player"
click at {50,1010}
end tell
end tell

Result was no effect and no error. Not sure the syntax is right.
I then reverted to just trying to send a simple spacebar event
which should toggle play/pause, but this didn't work either:

tell application "System Events"
tell process "DVD Player"
keystroke space
end tell
end tell

I was unable to find good docs on the System Events stuff like
'click at' and 'keystroke'.. is there a good 'complete' ref manual
for all this?

* * *

I'm probably missing a lot, since I've never worked with AppleScript.

If there were just a way I could move the mouse to an X/Y position and
click the mouse button, regardless of the app, that would really solve
my problem. But even this seems hard or maybe not possible in AS.

Any help on either how to send a simple x/y mouse click event,
or how to specifically click the 'Step Frame' button in DVD Player
would be great.

 >> Stay informed about: How to hit the 'Step Frame' button in "DVD Player" with ap.. 
Back to top
Login to vote
Greg Ercolano

External


Since: Apr 14, 2004
Posts: 6



(Msg. 2) Posted: Mon Apr 28, 2008 7:12 am
Post subject: Re: How to hit the 'Step Frame' button in "DVD Player" with applescript? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jolly Roger wrote:
> 1. Run Script Editor.
> 2. From menu bar, choose File > Open Dictionary.
> 3. Select the application in the list and open it. The AppleScript
> dictionary will appear.
>
> In this case, what you should do is take a look at DVD Player's
> AppleScript dictionary. Notice there is a "step dvd" command. You'd
> issue it like so:
>
> tell app "DVD Player"
> step dvd
> end tell

Thanks, that seems to work perfectly.

And thanks for the "Open Dictionary" recommendation.

 >> Stay informed about: How to hit the 'Step Frame' button in "DVD Player" with ap.. 
Back to top
Login to vote
Display posts from previous:   
   Macintosh computer (Home) -> Apple Scripts All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]