> com.release(itunesApp)
> itunesApp=""
> bar.close("itunesbar")
> win.close("=itunes")
> 
> You may also have to take the inititunes out of gettrack and put it into your 
> play routine. If you don't close your bar, the script would needlessly keep 
> running. To prevent that, you would need to work out some cl.setlabel 
> routines to change from info expr to something fixed like "Disconnected" if 
> the bar will be open when itunes isn't running.

Sorry Sheri, but I'm not getting it right.
The cl.setlabel I guess it's not needed because I'm doing this for various 
players, not just iTunes, so if wmp is running, display wmp track, if 
foobar2000, display track, if none, display random message...

So far, I have separate scripts for all of them and my intention is to merge 
them together when I have everything sorted out but iTunes is the one that is 
requiring more effort.

What about adding code to close that window?
Maybe using win.gettext or something for that dialog and click "Quit" button 
automatically or would that be a dirty workaround?
Your script has been running w/o any issues btw...
 


Reply via email to