[OS X] Control iTunes from console
Posted: 16 Jul 2005 19:20
I was fed up with not being able to control iTunes when playing openttd (normally I use keyboard shurtcuts from Synergy, but with oTTD fullscreen that doesn't work), so I wrote a little patch which gives the console the 'itunes' command. I barely know C, so it's possible that this is not done the way a real C coder would do it.
Basically all it does is
so it obviously won't work with the Windows version of iTunes.
Enter 'itunes' without arguments on the console for a small list of possible options.

Basically all it does is
Code: Select all
/usr/bin/osascript -e 'Tell Application "iTunes" to <arguments>'
Enter 'itunes' without arguments on the console for a small list of possible options.