[OS X] Control iTunes from console

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
oVRoM
Engineer
Engineer
Posts: 37
Joined: 11 Jan 2003 10:40
Location: Utah

[OS X] Control iTunes from console

Post 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
Attachments
itunes_controller_01.diff
(1.88 KiB) Downloaded 176 times
User avatar
GoneWacko
Tycoon
Tycoon
Posts: 8680
Joined: 10 Jul 2002 15:08
Location: Enschede, The Netherlands
Contact:

Post 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 :)
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
oVRoM
Engineer
Engineer
Posts: 37
Joined: 11 Jan 2003 10:40
Location: Utah

Post 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 :-)
User avatar
GoneWacko
Tycoon
Tycoon
Posts: 8680
Joined: 10 Jul 2002 15:08
Location: Enschede, The Netherlands
Contact:

Post by GoneWacko »

Indeed. And from there on, you'd basically end up having TTDOS :o
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 17 guests