2 ms·
Interesting; I didn't realize it was possible to control iTunes from alternate frontends via some sort of API. Instead of a new console-mode frontend, though, I
by _delirium 15y ago
Interesting; I didn't realize it was possible to control iTunes from alternate frontends via some sort of API. Instead of a new console-mode frontend, though, I wonder if it'd be possible to adopt player frontends from other client/server music players, like the ncurses-based 'ncmpc' frontend of mpd.
- telemachos 15y agoMy first thought was the other way around: How much would I need to do to make ViTunes control my mpd music? (There seem to be a couple of older Python Vim plugins to do this[1][2].) [1] http://www.vim.org/scripts/script.php?script_id=2856 http://www.vim.org/scripts/script.php?script_id=2856 [2] http://www.vim.org/scripts/script.php?script_id=2369 http://www.vim.org/scripts/script.php?script_id=2369
- JoelMcCracken 15y agoI haven't looked into ViTunes, but most Apple applications are very able to be scripted via AppleScript. If I had to guess, I would think that this is how this is being accomplished.
- js2 15y agoiTunes can be controlled via AppleScript. This plugin appears to talk to iTunes via a CLI the author wrote in Objective-C which uses Scripting Bridge to talk to iTunes. Scripting Bridge is a cocoa interface to scriptable applications. Many OS X applications expose part or all of their functionality via AppleScript. To get some idea of what an application offers you can fire up AppleScript Editor, then open the dictionary for a given application. (Rarely, an application will expose more than is shown in its dictionary.) Now, AppleScript is a truly detestable language, so avoid using it directly at all costs. :-) http://appscript.sourceforge.net/ http://appscript.sourceforge.net/ is much more friendly.