| Sign In/My Account | View Cart |
| Article: |
Controlling iTunes with Perl | |
| Subject: | If only I could install it | |
| Date: | 2002-11-25 13:49:20 | |
| From: | hondo77 | |
|
I love the idea of Mac::iTunes. However, as someone who tried to install the thing just a few days ago, it's not ready for prime time. There are so many freaking dependencies, some on modules that must exist only on Brian's personal box, that I couldn't get it working. Did I say "working"? I meant "installed". Personally, I just want to have an easy way to parse the XML files iTunes produces and have a nice object or two to play with. I shouldn't have to download half of CPAN and sync up with Brian's box to do that. I've seen this mentioned elsewhere on the web (an Apple mailing list, as I recall) so this isn't news.
|
||
Showing messages 1 through 11 of 11.
If only I could install it
If only I could install it
If only I could install it
If only I could install it
However, all of the modules it needs are on CPAN. The easiest way to find any module is to go directly to http://search.cpan.org. For some reason CPAN.pm does not find Mac::Path::Util, but it is on CPAN. Everything else is in the Perl modules list.
Some of the tests for the AppleScript portion seem to depend on the state of iTunes (e.g. docked or not). However, you can install the module even if the controller tests fail and the controller portion should still work. The parts of the module that deal with the library parsing do not depend on the other parts.
If you want to parse the XML music library, then you do not want Mac::iTunes anyway. The module will parse teh binary format, which, by the way, has more information about each track. The XML format does not expose everything.
If you send me any error messages you get I would be happy to help you sort it out.