--- In [email protected], "quantiworks" <quanticwo...@...> wrote:
> 
> That's what I did following your string suggestions but doesn't
> work. 

I installed iTunes for the moment.

Try the following, named e.g., iTunesPP. You can call it in your label or 
tooltip *info expr with .itune...@gettrack.

Regards,
Sheri

Function GetTrack()
static iTunesApp
if (not anywindow("=iTunes")) do
  if (iTunesApp == "") do
    quit("iTunes is not running")
  else
    local com_status
    com.release(iTunesApp)
    com.unload
    iTunesApp=""
    quit("iTunes is not running")
  endif
endif
local com_status
if (iTunesApp=="")
  iTunesApp = com.create_object("iTunes.Application")
quit(line(iTunesApp.CurrentTrack.Artist++"-"++iTunesApp.CurrentTrack.Name,1))


Reply via email to