Update the script to be used with french iTunes 

I used the localization settings to adapt the script. Set the property iTunesCountryCode to "FRA" to use in France.
Work with :
OSX 10.9.5
English language
French settings in iTunes
Side bar and status bar turned on
90 AppleId were made