in reply to buildasx.pl (W32 Windows playlist builder)

Thank you, both!

jdporter No, no CLI arguements expected; that's a todo, yet, but it does expect to run in the directory with the mp3s as it now stands. Could my oversight in failing to mention that be the reason it "doesn't work" for you? It's been fine on all three recent w32 boxes here.

BUT, thank you especially for pointing out problems AND improvements. Clearly, I should NOT have missed MP3::Info (though it is NOT FOUND in ActiveState's ppm repository)... which may explain, if not excuse, my reverse-engineering of the two working .asx samples I found.

If you would, please, elaborate on "gruesome" -- I think I understand re parsing the output from dir, but don't see why the code to obtain a (close) approximation of runtimes earned that epithet (which is definitely NOT to say it doesn't deserve it; I just don't understand why, yet).

blazar -- The brevity and elegance of your so-called "poor man's" script amazes me... but it also prompts a (hasty) question (I'll likely regret): as I read it, your script seems to imply that most of the junk I'm so awkwardly and verbosely handling is "unnecessary." True? Wikipedia was less than helpful; PC Mag's was even less so.
Update: Thanks also for quick reply below, even as I was fixing 2 omissions here.

  • Comment on Re: buildasx.pl (W32 Windows playlist builder)

Replies are listed 'Best First'.
Re^2: buildasx.pl (W32 Windows playlist builder)
by blazar (Canon) on May 07, 2007 at 22:39 UTC
    blazar -- The brevity and elegance of your so-called "poor man's" script amazes me... but it also prompts a (hasty) question (I'll likely regret): as I read it, your script seems to imply that most of the junk I'm so awkwardly and verbosely handling is "unnecessary." True?

    Well, mine just takes plain lists of files, as generated say by ls -1 or dir /b and makes them into minimal (but proper? I can only say they appear to work!) asx files. Just so that I can click on them under Windows and have them open in the appropriate player, in the order I want.

      "Minimal" works! (just for the record).