Update Play Count in iTunes for Windows

ITunes 12.2 Apple Music logo

I lost the playcount in iTunes for Windows for some of my tracks.

Tonight I wanted to fix that without editing the Library.xml file – that’s too extreme. I envy Mac owners as they have wonderful Applescript collections to manage iTunes.

I found the awesome Liquid Parallax scripts but didn’t like manually editing the javascript file to set the new play count. So I hacked it together with some Windows Script Hosting magic to invoke a input dialog box in javascript. So the script now asks you to input the new play count.

Installation instructions for Adjust Play Count in iTunes for Windows:

  1. Download AdjustPlayCount.zip and unzip the contents somewhere on your hard-drive. This will give you a 3KB file called AdjustPlayCount.wsf
    • Google Chrome doesn’t like wsf files and may block it with the message AdjustPlayCount.zip may be dangerous so Chrome has blocked it, you can use Firefox to download it or
    • go to your address bar and enter chrome://downloads/# 
    • then click KEEP DANGEROUS FILE
  2. Remember where you saved the script.

How to Adjust Play Count in iTunes for Windows:

  1. Select/highlight one or more songs in iTunes for Windows (use Shift+click or Ctrl+click to select more than one file). This can include the song now playing.
  2. Alt+Tab to your Windows Explorer window and double-click AdjustPlayCount.wsf
  3. Enter the desired new play count number in the dialog box.
  4. Click OK
  5. The script will reply with the new play count and number of files adjusted.

The script will update your iTunes for Windows play count for all the selected songs – even for the current playing song if you’ve highlighted it.

It worked for me on Windows XP and Vista Home using iTunes 10.0.1.22. In the comments you’ll see it works with Windows 7, 8 and 10 with iTunes 12+.

I provide no warranties for this script. Test it on one backed up song first. If it kills your tunes, drinks your liquor or runs off with your daughters, it’s not my fault. You’ll see in the comments it has worked with thousands of files for others.

You can open the wsf file in a text editor to read the script if you want to see what it does.

Limitations:

  1. iTunes for Windows only. It kinda needs Windows to work.
  2. AdjustPlayCount does not check or force you to type an integer in the dialog box. I don’t know what will happen, but it can’t be good.
  3. I’ve tested it with 20 songs selected. I don’t know how it would perform if you selected 1,000 songs at once. Let me know, okay? *You’ll see in the comments it’s worked with thousands of files for others.

Suggestions, bug reports, questions and/or thanks in the comments. Maybe I could make it increase the play count by set number? Tell me what you think.

Update 14 April 2013: I’m thinking of a checkbox that will also reset the last played date to todays date. Again, let me know what you think.

Update 24 March 2017: If you can’t download the file using Google Chrome browser because of its security settings, you can use Firefox to get the file or do the following

  • go to your address bar and enter chrome://downloads/# 
  • then click KEEP DANGEROUS FILE

Vista LPR printing

Thanks to the Delphi Geek’s post When Vista Doesn’t Print I finally got Vista to print to my multiport print server a D-Link DP 300U.

Earlier versions of Windows worked by just adding a local port. Windows Vista allows you to do it just like always, but it doesn’t work.

You must first install LPR Port Monitor feature via Control Panel > Programs and Features > Turn Windows features on or off > Print Services. Then create a new LPR port and add the IP address and queue name.

Hope it helps someone else out there. Plus I keep a note here.

Vista Home Basic is not good

I’m using a new budget laptop at the moment. It’s a Compaq c700 (actually a c763TU) that will eventually go to my kids, so I thought I’d checkout what Vista Home Basic is like.

On a laptop it makes no sense! Laptops move from location to location, but the networking features are brain dead. I’ve managed to get it working each time, but I don’t think my mum would manage at all well. Actually her laptop is Vista Home Basic, but she only connects to the internet when she’s at home or my place. So she doesn’t have to deal with network configuration issues.

In the two weeks I’ve had it the network configuration has given problems at least 5 times.

The Compaq C763TU has a web cam and a card reader built in, but no PC Express slot and it’s only running a celeron processor. But for sub $600 AUD I wasn’t expecting a lot of features, just a simple laptop. In that regard it’s quite nice.

Still can’t stand Vista. Yes I know Home Basic is the cut down simple version, but it should just work dammit! I miss my MacBook.

What happens if one uses a Mac to read a ppt made on Windows?

Zak Greant?s Blog answers this question in a way that made me laugh out loud.

Powerpoint files are easily handled on a Mac:

  • iWork 08 will import it, there is a 30 day trial available.
  • NeoOffice (the native Mac OS X port of OpenOffice.Org) will open it and run all but the most complex .ppt file. It?s free
  • Microsoft offers a free PowerPoint 98 viewer
  • Lastly and most easily consider?using Google Docs in your browser.

Lot?s of choices should be enough for any Mac convert

Windows Users Guide to Your New Mac

get a mac ad characters

A number of friends and many acquaintances have moved to Macs and turned their backs on Windows.

I moved full time to a Mac a year ago. Here?s part 1 of my occasional series Your New Mac: a Guide for Windows Users

Things to do with Your New Mac

  1. Download the Skype client for mac and for chat use Adium http://www.adiumx.com/ multiprotocol for Windows Live Messenger, GoogleTalk, ICQ, AIM, Jabber, QQ, Gadu-Gadu etc. Both are free.
  2. Running Windows: Bootcamp is faster than parallels because bootcamp runs windows on your intel mac hardware, but you?ll have the stability and security issues of windows all over again. Bootcamp ships with Leopard
  3. Create another folder in you ?home? directory in finder and call it Applications – this is where you should drag and drop application that you install and test out. Keep your normal ?Applications? folder for Apple default apps or stuff that must live there. Add/Remove programs is as simple as drag ?n? drop to your Applications folder. To remove drag the icon to the trash.
  4. Email importing. If you were using POP3 with outlook or outlook express, copy your mail folders to a USB drive then mail.app should be able to import them. I moved via thunderbird and that imported my mail into the windows version of Thunderbird and then I dragged and dropped into mail on the Mac. see Moving Email from PC Outlook to Apple Mail for a brilliant guide
  5. .mac is available as a 30 day free trial. A friend swears by it – I?ve never used it.

I?ll add to this series as time goes on. In the meantime comment below and I?ll answer your questions.

PDF files left by Firefox on Mac OS X Desktop

Mac Desktop PDF files left by Firefox

How To Auto-Delete Temporary Files abandoned by Mozilla apps on your Mac OS X Desktop.

Firefox on Mac OS X does not clean up temporary files in the same way as the Windows version. When you right-click a PDF file and view it (instead of save) Firefox downloads it and then runs the browser helper application. Firefox has no way of knowing when you?ve finished with the file, so by design it does not delete it.

This can leave your desktop cluttered with PDF files and other assorted detritus of the web.

The location for saving temporary files from the Open with command is set by your Safari preferences on the General tab. Change Save downloaded files to? and pick something like Documents | Downloads | Temp. Firefox will now download files there with you chose Open with instead of Save. Your default Save location is still set in Firefox preferences.

Thunderbird also displays this behaviour.

The fix is

  1. Go the the URL about:config (type it in the address line of Firefox)
  2. Right/Control-click anywhere on the page and select New > Boolean from the context menu
  3. Type or paste browser.helperApps.deleteTempFileOnExit as the preference name in the dialog box that pops up and select True for the value

Firefox will now automatically delete these Temp files when it exits.

For Thunderbird get to the config editor via Thunderbird > Preferences? > General > Config Editor? and add the same Boolean preference.

Update: 21 August 2015 (!) Although I wrote this 8 years ago it still gets traffic and is still an issue for many people. Say thanks below if it helped. A lot of the internet links to this post broke over the last few months, but I’ve fixed it now.

Update: 4 September 2015 Railroad adds that this is still an issue with OS X 10.8.5 through to 10.10.5. Thanks for the update.

Mac OS X Keyboard navigation

For those switching from Windows to a Mac go and read the excellent HOWTO Switch To The Mac article from Tao of Mac

If you?re keyboard-oriented, go into System Preferences | Keyboard and Mouse | Keyboard Preferences and Turn on full keyboard access. Now you can deal with dialog boxes the way you?re used to, as well as accessing menus and toolbars with the keyboard.

There is even a hint on getting the home and end keys to work more like Windows users expect them to. I?m struggling with their Mac behaviour, but I?ll perservere for now. Check out the Windows Centric tips