How to download iTunes song (via iTunes Match) using AppleScript
tell application "iTunes"
  set matchedSongs to tracks of library playlist 1 whose rating is 100 and cloud status is matched
  set uploadedSongs to tracks of library playlist 1 whose rating is 100 and cloud status is uploaded

  set results to matchedSongs &amp; uploadedSongs

  repeat with aTrack in results
    if class of aTrack is shared track then
      try
        download aTrack
      end try
    end if
  end repeat
end tell


This does the job!

I couldn't figure how to do a nested condition on the whose so I simply acquire both set of searches for matched and uploaded songs and combined them.

The try and if just ensure we download the valid tracks if they don't exist locally.