William Richards3 wrote:
YOU SAID: To test it I first used the script to export metadata and artwork for a sample track. I then used iTunes to create a
copy of that track in Apple Lossless format
ME: Did you run the export/import script first above? Are you saying you highlighted a track in iTunes and said to create a copy of that into lossless? Was this just for demonstrative purposes? Taking a 160 file to lossless wouldn't be apropos would it?
As mentioned in the annotation to the image I used the iTunes created ALAC file to simulate a fresh conversion from a .wav original. I'm well aware that isn't exactly what you're going to do, but I didn't feel the need to break out a CD player and make some fresh .wav rips just to illustrate the use of this script.
YOU SAID: .. edited or removed most of the metadata from the ALAC version, including the artwork and the lyrics. I then removed the ALAC copy from the library without deleting the file, and moved the original .mp3 to a new folder to break the link to the library. Next I ran the ExportImport script in import mode
ME: Are you talking about running the "export" and then running the "import" script - I'm confused as it's just one script isn't it? How does it know which it is doing?
If you run the script by double-clicking on it in Windows Explorer it runs in export mode, against the tracks that are selected in iTunes. If you drag and drop a text file onto it then it runs in import mode. Maintaining one script is easier than maintaining two that are interdependent.
YOU SAID: ..by dragging and dropping the exported metadata file onto the script. The script connected the now-broken entry in the library that was pointed at the missing .mp3 file to the new .m4a ALAC replacement, and restored the correct metadata including artwork image and lyrics.
ME: So at what point did you move the ALAC version back into the library or into the folder the 160 resided in?
I didn't. The script started importing metadata for the original entry in the library, discovered that the 01 Take On Me.mp3 file was no longer in the folder, then looked for other files in the folder of the form 01 Take On Me.<ext> with the options of .m4a, .mp3, .aif, .aiff, and .wav. Once it found a file called 01 Take On Me.m4a it connected iTunes to that, then proceeded to restore the original archived metadata, including lyrics and artwork. This is what you've asked for.
YOU SAID: Apple Lossless version with edited metadata to simulate a fresh conversion from a .wav original. Note I'm not
using the iTunes features to keep the media folder organized, so changing properties here doesn't change the filename or location:
ME: You didn't indicate a .wav file above. You said you converted to ALAC within iTunes on the original file I thought. I'm
confused here. Again, should I use the "keep media folder organized"? And just what does that do (or not) related to your last sentence above?
I've probably introduced unnecessary detail here, the key point is that for the script to be able to automatically relink <path>\<song>.<ext1> to <path>\<song>.<ext2> the first file has to disappear, and the second one must be exactly the same except for <ext2>.
And I'm confused by the screen shots for the export/import. Does your script know that you've run it once and then when you run it again it runs the other part? Here's the two script views in your captures:
Again context comes from how you launch the script.
YOU SAID: And the library now has an Apple Lossless version instead of the mp3 copy, with all of the same metadata:
ME: I'm kind of lost, I'm so sorry to say. Perhaps if you could list the steps without images and your flow, that would help.
I can give it a try but there's one spot here that I'm very confused by - which is the first part where you talked about
making a copy within iTunes.
Again, me making a copy using iTunes was to simulate you converting your .wav original with whatever tool you use.
You need the new version of ExportImport, version 1.0.0.17 dated September 4th.
So, step by step once more:
- Select a track that you want to upgrade in iTunes.
- Run the ExportImport script by double-clicking the script in Windows Explorer.
- Use whatever process it is that you have to make your new higher resolution copy, put it in the same folder as the original that you are replacing and remove the original. This must be in the same folder, and with the same filename apart from the file extension.
- Drag and drop the Export Import [<Date> <Time>].txt file that was created in step 2 onto the ExportImport script.
- Review the updated files in the library and Explorer to check that all the properties have been restored, artwork embedded, etc.
This process should work the same way for 10 or 100 files as it does for one.
tt2