All pastes #905603 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-02-15 22:09 UTC
rendered paste body
Alias iTunes {
  if ($com(it) == $null) { 
    .comopen it iTunes.Application 
  }
  if ($com(ct)) {
    .comclose ct
  }
  .echo -q $com(it,CurrentTrack,3,dispatch* ct)
  .echo -q $com(ct,Artist,3)
  set %artist $com(ct).result
  .echo -q $com(ct,Album,3)
  set %album $com(ct).result
  .echo -q $com(ct,Year,3)
  set %year $com(ct).result
  .echo -q $com(ct,Name,3)
  set %song $com(ct).result
  .echo -q $com(ct,Genre,3)
  set %Genre $com(ct).result
  ;edit below line to change the display.
  ;You can use the identifiers: %song | %artist | %album | %genre |
  %year
  /msg $chan 15[vTunes] 1Song:3 %song By:3 %artist 3Album:3 %album Year:3 %year}