I’m trying to accomplish the following:
Press and hold the left or right arrow key in itunes - to make the cover flow window move left or right - not just one album at a time. I plan to use this in a Cocoa app that controls iTunes from external devices if possible.
I’m experimenting with this:
tell application "iTunes" to activate
tell application "System Events"
key down (key code 124)
delay 2
key up (key code 124)
end tell
With the ultimate goal being to call the key down in one script and the key up in another upon press/release of a button (with appropriate safety considerations of course.)
What I get is one bump right on the cover flow and then two seconds later another bump.
Any thoughts? Anyone know of a lower-level API I can use to do this from within my App?
Thanks!