Hey Rod,
I'd connect to the ClientInformation.OnShutdown event and destroy the
iTunes object there.
Hth,
Tom
On 2/21/2016 11:36 AM, Rod Hutton via Scripting wrote:
Hi,
In updating my Itunes Enhance app, I now get the following message when
quitting Itunes:
One or more applications are using the iTunes scripting interface.
Are you sure you want to quit?
If you do nothing, all applications that are using the scripting interface
will be automatically disconnected in 20 second.
Quit Don't Quit
I think I'm getting this message because, in the previous version of my app,
which controls Itunes using its COM object using hotkeys, I used to set my
Itunes object variable to Nothing after completing the commands for each hotkey.
Now, however, in the present version of my app, after some of the hotkey
presses, I'm continuing to monitor the state of Itunes, and so I no longer set
my Itunes variable to Nothing.
This means that my app never nullifies my Itunes object variable, and so if the
user quits Itunes, they get the above message.
In a way, it's no big deal, since the counter runs down, and, if the user does
nothing, all will be well.
However, I'm just wondering if there is a way to prevent the message from
appearing, and avoid frightening the squeamish user.
Thanks,
Rod
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com/attachments/20160221/493cba13/attachment.htm>
_______________________________________________
Any views or opinions presented in this email are solely those of the author
and do not necessarily represent those of Ai Squared.
For membership options, visit
http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/tom.kingston%40charter.net.
For subscription options, visit
http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com
List archives can be found at
http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com
_______________________________________________
Any views or opinions presented in this email are solely those of the author
and do not necessarily represent those of Ai Squared.
For membership options, visit
http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/archive%40mail-archive.com.
For subscription options, visit
http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com
List archives can be found at
http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com