another itunes script with no crappy dialog
Platform: mIRC
Published Dec 15, 2009
Updated Dec 15, 2009
Paste in ur remotes and save.
basically it has various commands.
To turn it on type: /itunes open
To play/pause a song type: /itunes play
To play the next track type: /itunes next
To go back to the previous track type: /itunes previous
To stop a song type: /itunes stop
For track info type: /track
alias itunes {
if ($1 == open) {
.comopen itunes itunes.application
.echo -a $comerr
}
if ($1 == Play) {
.set %play $com(itunes,PlayPause,3)
/track
if (!%play) {
.echo -a No track to play, Itunes may not be open.
}
}
if ($1 == Next) {
.set %next $com(itunes,NextTrack,3)
/track
if (!%next) {
.echo -a No track to play, Itunes may not be open.
}
}
if ($1 == Previous) {
.set %Previous $com(itunes,PreviousTrack,3)
/track
if (!%Previous) {
.echo -a No track to play, Itunes may not be open.
}
}
if ($1 == Stop) {
.set %stop $com(itunes,Stop,3)
if (!%stop) {
.echo -a No track to play, Itunes may not be open.
}
}
}
alias track {
if (!$com(itunes)) { .comopen itunes iTunes.Application
}
if ($com(CurrentTrack)) { .comclose CurrentTrack
}
.echo -q $com(itunes,CurrentTrack,3,dispatch* CurrentTrack)
.echo -q $com(CurrentTrack,Artist,3)
.set %artist $com(CurrentTrack).result
.echo -q $com(CurrentTrack,Album,3)
.set %album $com(CurrentTrack).result
.echo -q $com(CurrentTrack,Time,3)
.set %time $com(CurrentTrack).result
.echo -q $com(CurrentTrack,Rating,3)
.set %rating $com(CurrentTrack).result
.echo -q $com(CurrentTrack,Name,3)
.set %name $com(CurrentTrack).result
/msg # 4Artist: 12 %artist 4Track: 12 %name 4Album: 12 %album 4Time: 12 %time 4Rating: 12 %rating $+ .
}