--- In [email protected], "quantiworks" <quanticwo...@...> wrote:
>
> The only minor issue I'm seeing, don't know if you see it too...
> is the moment I close iTunes, I get a pop-up message with this:
>
> "One or more applications are using the iTunes scripting
> interface. Are you sure you want to quit?" "If you do nothing,
> all applications using the scripting interface will be
> automatically disconnected in 20 seconds."
>
> Any way to avoid that?
>
Yes, before closing iTunes you would first need to release itunesapp:
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.
If you haven't already, you should put com.unload into a command list named
PProShutdown. You can keep or not com.unload in the script. If you potentially
had other com driven scripts running, you would not want it getting arbitrarily
unloaded.
Regards,
Sheri