ITunes keeps information about how often a song was played, but this information is not correct if it still plays my music when I'm away from my Mac. So this application will run silently in the background and watch for the screensaver. If the screensaver starts and iTunes is playing the playback is paused. As soon as the screensaver stops the music plays again.
This application was made in Realbasic in only 10 minutes. Some classes from the MBS Realbasic Plugin helped: First we have a subclass of the CarbonApplicationEventsMBS class which receives an event from the system whenever an application is launched. Using the ProcessMBS class we check whether the launched application is the screen saver and whether iTunes is running.
So I can know on what's wrong in your side? Hey @krnaveen14, I am facing the same annoying error while connecting my Reliance Netconnect+ Datacard to my Windows 10 Tech Preview PC, it gives me the error that 'The Remote Computer did not Repond.' Does is it saying that username or password wrong Error or Is it pooping that the device is not plugged in? Datacard cp40 plus ribbon.
In case iTunes runs we stop the music using an AppleScript which is compiled and executed using the AppleScriptMBS class. In the event handler for terminating applications we check if this is the screen saver. In case the screen saver quits we tell iTunes to play again. This application runs in the background and can be quit using the Activity Monitor (see /Applications/Utilities folder). For best results, just add this app to the login items in the preferences. This application is freeware and provided as is.