Controlling iTunes with Perl 47
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."
Re:uh, aren't there other players? (Score:2, Informative)
Re:uh, aren't there other players? (Score:5, Informative)
> 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
Comment removed (Score:4, Informative)
Re:For Darwin for OSX (Score:3, Informative)
Can you be more specific? I'm not sure how mean this. Are you talking about the benefits of client server network transparency? Quartz (Aqua is essentially just the theme) is based on the same model. It is fully capable of network transparency. OpenStep and Rhapsody's DPS engines supported it. Apparently the hooks are still in there. I once saw them documented in detail on a GnuStep mailing list, but I can't google it and their archive does not seem to be searchable. I did find a mention of them on Ars Technica [arstechnica.com] and Planet PDF. [216.239.37.100] My Apple reps refuse to comment on whether Apple has plans for exploiting this capability.
BTW, Apple continues to update and publish the OpenStep standard and Quartz remains OpenStep compliant. From the GnuStep FAQ:
Re:With a little help from AppleScript, I might ad (Score:3, Informative)
Coming soon to Mac OS X box near you, as part of the already-released Mac::Carbon [cpan.org] distribution. I am so gonna have fun with this when it is released