Slashdot Mirror


Controlling iTunes with Perl

EccentricAnomaly writes "brian d foy has created perl modules for controlling iTunes. His modules, Mac::iTunes and Apache::iTunes, can be found on the CPAN. Now perl mongers can run iTunes remotely via the command line or via a web interface on a Mac hooked-up to a nice stereo to use as a home or office jukebox. I shudder to think what else may be possible now that iTunes is in perl's clutches."

2 of 47 comments (clear)

  1. Re:uh, aren't there other players? by Melantha_Bacchae · · Score: 5, Informative

    bdash wrote:

    > When using Mac OS X I try as hard as possible to
    > avoid 'ports' of *nix software.

    Don't look now, but your hard drive has many ports of Unix software that were installed with OS X. But that is because OS X really is Unix.

    > This is simply because unless a decent job has
    > been done on the porting, the look and feel just
    > does not fit with the rest of the system. To
    > make a *nix application fit in with the look and
    > feel of the system would require a substantial
    > amount of modification to the code, sometimes
    > enough that it would be easier to just start
    > from scratch.

    It depends on how separate the user interface is from the rest of the code. If the user interface is well separated, you can just toss that, write a new one in Cocoa, and keep the behind the scenes code. If the program has no graphical user interface, such as say MySQL (an open source back end database program), you can do a fairly straight port.

    In this case they are talking about adding the ability to script iTunes with the Perl language the same as you would with AppleScript. No look and feel is involved, and if you don't know Perl you probably wouldn't be using it.

    Chief Tsujimori: "I won't let you get away. I will never let you escape."
    Godzilla elegantly lifts his tail skyward to give her the "finger", crashes it down on the water, and submerges.
    "Godzilla X Megagiras", 2000

  2. Re:For Darwin for OSX by jcr · · Score: 4, Informative

    Because OSX has an entirely non standard Gui (from a Unix perspective) that isn't based on X;

    Things change. Quartz/Aqua is now the the standard GUI for UNIX, since Mac OS X is far and away the most-numerous UNIX there is.

    -jcr

    --
    The only title of honor that a tyrant can grant is "Enemy of the State."