(total noob) Can it be done ? put file date in ID3 tag via iTunes

Hi guys and gals

Subject says it all… I have a one-time task to accomplish: I’d like to put the “modified” date of a bunch of mp3 files into the “comment” field (ID3) of each file, presumably with the help of iTunes.

I looked into Automator to see if file properties could be collected, and if I’d get it done without even writing a line of code. Fat chance.
In the AppleScript editor, I have yet to manage writing a script without the instructions coming out purple (lots to learn!!).

Can this batch be done at all? any clues on the technniques to use?

Thanks in advance :wink:

PG from France

Are these files already in iTunes’ library?

The majority isn’t, but iTunes’ library really isn’t vital for me, I mean I can wipe it and only add the files I need to process…
Does it mean I might not need to interact with the finder, but only with database IDs etc?

OK so after searching a bit here, I put together this script:

tell application "iTunes"
	set comment of every track of library playlist 1 to modification date
end tell

I get an error saying (approximate translation from the french error)

And if I remove the 1 after library playlist, the error says

I knew it seemed too beautifully simple!!