Page 1 of 1

[OS X] Control iTunes from console

Posted: 16 Jul 2005 19:20
by oVRoM
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

Code: Select all

/usr/bin/osascript -e 'Tell Application "iTunes" to <arguments>'
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.

Image

Posted: 16 Jul 2005 19:24
by GoneWacko
Although I do not have a Mac, this looks like a pretty nice patch.

Although I'm not sure about the chances of it getting committed, last time I checked the developers weren't too fond of stuff that kind of bloats the software :)

Posted: 16 Jul 2005 19:29
by oVRoM
GoneWacko wrote:Although I'm not sure about the chances of it getting committed, last time I checked the developers weren't too fond of stuff that kind of bloats the software :)
Lol, if they would commit patches like this we'd have complete chaos within weeks :-)
[Win32] Patch to control Winamp from console
[Unix] Run vi editor in console
[Unix] Run emacs editor in console
[Unix] Use Lynx in console
[OS2] Display current weather in console
;-) :P

So don't worry, I only wrote it for myself but posted it here because there might just be another frustrated iTunes user out there who thinks this is useful :-)

Posted: 16 Jul 2005 19:31
by GoneWacko
Indeed. And from there on, you'd basically end up having TTDOS :o