Many thanks to brian d foy for making me more productive. No need to touch the mouse or switch applications or maximize iTunes. Now I can switch the song or replay without pain.
#!/usr/bin/perl
if ( my $action = shift ) {
fork and exit;
require Mac::iTunes;
Mac::iTunes->controller->$action( @ARGV );
} else {
print "Usage: $0 action [args]\n";
}
old skool (Score:1)
brian may wish to look into including compiled AppleScripts with the module, or, better yet, using osacompile to write out scripts to a directory during make, or on demand. Something like:
Re:old skool (Score:2)
Casey West
Re:old skool (Score:1)
i'm also working on an iTunes command server so a daemon process accepts commands.
i'll check out the compiled stuff later. right now i'm still wrestling with iTunes to make it do what it advertises.
Re:old skool (Score:2)
I'm feeling the itch...
Casey West
Re:old skool (Score:1)
next week i'll release another version that gets rid all of the system calls. it's broken in some pretty heinous ways right now, but you can also scout around SourceForge if you really want to be brave. (the ticket to entry is actually finding it on SourceForge and figuring out anon CVS
Re:old skool (Score:2)