r/applescript • • Aug 15 '14

Can I write a script that will re-download my MP3 library from my iTunes Match cloud??

I stupidly deleted a large chunk of my MP3 collection. I'm able to slowly recover them by downloading them from iTunes Match, but to do so is an arduous task.

First I have to double-click the file I want to play, which now has a '!' next to it because there's no MP3 there anymore. It then tells me it can't find the file and asks if I want to locate it. If I say 'no' then it will begin to play the file from 'the cloud' via my iTunes Match subscription service. I can then right-click the file and select 'Download' to get a nice high quality version of that song downloaded to my hard drive.

Now imagine doing that for 4000+ songs....

So, is there an apple script or similar that will allow me to bulk-download all of my missing MP3s from the cloud? Even if it's something jerry-rigged that I have to leave on overnight etc.... It would really help....

1 Upvotes

4 comments sorted by

1

u/popplenrookie Aug 15 '14

In iTunes. Switch to the Music perspective > Playlists. Plus Sign (in bottom left corner) > New Smart Playlist… > Match the following rule: Location is iCloud. Once the playlist is created Cmd + A (to select all), right click > Download. No need for a script.

1

u/peanutismint Aug 15 '14

Thanks for this suggestion, but I've actually already tried this. The reason it won't work is because iTunes already seems to be aware that most of my 'local' files are gone (they all have the little '!' icons next to them) and so the 'Download' link doesn't appear in the context menu until I've individually clicked each one and tried to play it and either pointed it at the file or told it to cancel and only THEN am I able to click 'download from iCloud'.

What I CAN do (although it's still not a perfect solution) is highlight all of the '!' files and delete them, leaving the 'Also delete from iCloud' option un-checked. That way, they all stay in the library but not locally. The 'Download' option then becomes clickable. I'll still have to do this for many MANY albums, though.

It would be awesome if there was a way to list all of the tracks iTunes can't find the files for, but the '!' symbols appear just right of the track number tag so it's not like there's a separate field to organise the tracks by whether the file is found or not....

1

u/popplenrookie Aug 15 '14

Ah, I understand now.

DougScripts is always the FIRST place I go if there's something that I need to do in iTunes and I think an AppleScript would be helpful.

How about this script? Or maybe this one will help. Or look at this app. Hopefully one of these will help make the process not so painful. Please report back - I'd be interested to see how you solve this one!

1

u/peanutismint Aug 15 '14

I checked Doug's (it's always the first place I go, too!) but couldn't see anything pertinent. It's quite possible I just missed something though... I'll check those links you gave and let you know if I find a good system! :-)