My iTunes Now Playing Script. Paste into Remotes. Alias is /np
Got any questions or comments please post below.
Thanks!
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 iTunes may not be open.
}
}
if ($1 == Next) {
.set %next $com(itunes,NextTrack,3)
/track
if (!%next) {
.echo -a iTunes may not be open.
}
}
if ($1 == Previous) {
.set %Previous $com(itunes,PreviousTrack,3)
/track
if (!%Previous) {
.echo -a iTunes may not be open.
}
}
if ($1 == Stop) {
.set %stop $com(itunes,Stop,3)
if (!%stop) {
.echo -a iTunes may not be open.
}
}
}
alias np {
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,Name,3)
.set %name $com(CurrentTrack).result
/me 4np: 8 %name 4by: 8 %artist 4from: 8 %album
}
young fucking ripper again,
Original post is: http://www.hawkee.com/snippet/7027/