I really like the iTunes Dashboard widget, but if you have a lot of playlists (I have 150), it can take a long time to respond to any mouse clicks when you first pull up the Dashboard ... which makes it pretty ineffective as a quick alternative to using the iTunes interface.
This time lag occurs because the widget updates the list of playlists when you first show the widget, and when you turn it over. I'm not sure why you'd need to update the playlists when you first pull up the widget, so I decided to comment out that function. So far, I haven't noticed any problems (comments are welcome).
Here's how to change it:
function onshow ()
{
if (iTunes)
iTunes.updateIsAppRunning();
if (ourTimer == null)
{
updateDisplay(); // reload we just shown
ourTimer = setInterval("updateDisplay()", 500);
}
if (running)
updatePlaylists();
}
function onshow ()
{
if (iTunes)
iTunes.updateIsAppRunning();
if (ourTimer == null)
{
updateDisplay(); // reload we just shown
ourTimer = setInterval("updateDisplay()", 500);
}
// if (running)
// updatePlaylists();
}
Mac OS X Hints
http://hints.macworld.com/article.php?story=20050627135914749