About iTunes and Screensavers 1.3

Mac OS X 10.6 Note: Apple changed the screensaver implementation in a way that this application currently can't detect whether screen saver is running. So this application does not work on Mac OS X 10.6!

Source code   Download  

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. 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.

How to quit?

This application has no interface. It will quit if you log out.

If you want to quit this app without logging out you can use the Process Viewer to quit the process.


Making donations

This application is considered donation-ware (uncrippled shareware). If you find it indispensable, please consider making a donation.

Donate 10, 20, 30, 40 or 50 Euro/Pounds/US-Dollar

Please pick a value and purchase the quantity you like. This goes through share-it to make sure any required sales tax is collected.

In US Dollar:

If you'd rather not use PayPal, you can send something to me directly at:
Christian Schmitz, Plaidter Straße 31a, 56645 Nickenich, Germany

New in version 1.3

  • Now an universal binary application.
  • Moved project to Realbasic 2007r5 and newer plugins.
  • Now compatible to Mac OS X 10.5.
  • Fixed some bugs and removed some possible bugs.

New in version 1.2

  • Moved project to Realbasic 5.5 and newer plugins.
  • Fixed problem with users of Script Debugger from latenightsw.com.

New stuff in 1.1

  • Now checks if iTunes is playing before stopping the music. This will make sure that music is not resumed if iTunes was not playing before.

MBS Xojo Plugins

Start Chat