Categories: Misc / DotNet / Java / Coder / Linux / PHP Ask - La ask - La Answer

Append to Selected Tag -> modification date

I'm using "Append to Selected Tag" to mass-tag my files; this will allow me to make more creative Smart Playlists. It worked great on iTunes, and my Smart Playlists are doing just what I want there.

However, the Smart Playlists aren't giving me the results I want on the iPod, and I finally realized that it's because the modified tags weren't copied over to the iPod (I use auto-syncing), and that is because the last modified date wasn't changed by this script.

Is there any way to modify Append to Selected Tag to make it change the modified date as well, so that any changes will be copied when I sync?

Or do I just have to erase the iPod and start over each time I make tag changes (and what's the quickest way of doing so)?
[789 byte] By [thenightfly42] at [2007-11-9 13:53:18]
# 1 Re: Append to Selected Tag -> modification date
Oh, and just about all of the files are AAC (m4a), if that makes a difference.
thenightfly42 at 2007-11-15 17:25:01 >
# 2 Re: Append to Selected Tag -> modification date
I do not believe that it is a problem with the script since it doesn't actually access the file. iTunes is actually intercepting the call and updating the data in the usic Database instead of updating the tag data on the disk. (I'm not sure if mp4 supports the ID tags anway.)

If you want to modify the script to change the modification date, the touch command (with do shell script) would work well.

(I am not the author and could be way offbase with my comments.)
DeltaTee at 2007-11-15 17:26:12 >
# 3 Re: Append to Selected Tag -> modification date
I do not believe that it is a problem with the script since it doesn't actually access the file.

Actually, the file is accessed when you change data that is stored in its ID3 Tag. For instance, if you change the composer tag, the modification date changes to the current date, in the Finder as well.

Some tags do not affect the actual file because they are managed by iTunes, eg play counts and rating.

What tags were you altering with Append to Selected Tag (http://www.malcolmadams.com/itunes/scripts/scripts09.shtml#appendtoselectedtag)?
Doug Adams at 2007-11-15 17:27:10 >
# 4 Re: Append to Selected Tag -> modification date
Originally posted by Doug Adams
What tags were you altering with Append to Selected Tag (http://www.malcolmadams.com/itunes/scripts/scripts09.shtml#appendtoselectedtag)?
I'm adding invented code words to the Comments field (ALLROCK, PMRC, XKLUD) so that I can query them with Smart Playlists.
thenightfly42 at 2007-11-15 17:28:04 >
# 5 Re: Append to Selected Tag -> modification date
Try this experiment:

Command R on a track to reveal its file in the folder. Set the folder's View temporarily to List and make sure you can see the Date Modified column (even better, sort the folder by Date Modified).

Go back to iTunes and alter something in the Comments tag of the track you selected?change anything, add an X at the end or something. Then select another song, just so iTunes isn't still "holding on to the track".

Look at the track's file in the Finder and see if it got modified (you may have to try to select it so that it updates). Have a look at the track's Get Info Summary and see if Date Modified got updated there, too.

Now try it running the script and see if the file gets similarly modified.
Doug Adams at 2007-11-15 17:29:11 >
# 6 Re: Append to Selected Tag -> modification date
Originally posted by Doug Adams
Try this experiment:

Command R on a track to reveal its file in the folder. Set the folder's View temporarily to List and make sure you can see the Date Modified column (even better, sort the folder by Date Modified).

Go back to iTunes and alter something in the Comments tag of the track you selected?change anything, add an X at the end or something. Then select another song, just so iTunes isn't still "holding on to the track".

Look at the track's file in the Finder and see if it got modified (you may have to try to select it so that it updates). Have a look at the track's Get Info Summary and see if Date Modified got updated there, too.

Now try it running the script and see if the file gets similarly modified.

Case 1: The Finder updated the Modified date. Get Info also revealed the updated Modified date.

Case 2: Same. :eek: ?

However, I noticed in both cases that the Date Modified as displayed in the regular iTunes main window did not change until after the Get Info was opened. If I don't open Get Info, the Date Modified stays at the old time, even if I change playlists or select other songs and go back to the original track.

I also just looked at the tracks that I changed yesterday, and the modification dates are now correct (I don't think they were correct yesterday). However, they still don't resync, since the last sync time was after those changes.
thenightfly42 at 2007-11-15 17:30:10 >
# 7 Re: Append to Selected Tag -> modification date
Does restarting iTunes reflect the correct modifcation dates on the tracks?
DeltaTee at 2007-11-15 17:31:14 >
# 8 Re: Append to Selected Tag -> modification date
Originally posted by DeltaTee
Does restarting iTunes reflect the correct modifcation dates on the tracks?
Nope, just tried that. OTOH, I hadn't quit iTunes for a few days before that, and the other tracks mysteriously fixed themselves anyway.
thenightfly42 at 2007-11-15 17:32:16 >
# 9 Re: Append to Selected Tag -> modification date
Could someone else try this part of the experiment and find out if it is just my system? I'm on a iMac DV/SE (400 mHz), OS X 10.2.6:
Originally posted by Doug Adams, exerpted by me
Go to iTunes and alter something in the Comments tag of the track you selected?change anything, add an X at the end or something. Then select another song, just so iTunes isn't still "holding on to the track".

Have a look at the track's Get Info Summary and see if Date Modified got updated there.

Thanks.
thenightfly42 at 2007-11-15 17:33:14 >
# 10 Re: Append to Selected Tag -> modification date
I have a database of 20k sfx that are searchable via itunes. I first thought it was a permissions problem keeping the system from updating the date modified. I noticed that some files would update the date modified when changing the song name and others would not in the same playlist.

The PROBLEM: Itunes will only update the date modified if the file is an AIFF (or maybe mp3...I didn't check) It definitely does not update the date modified if you change the song name info and the file is a .wav, .sd2, "quicktime", or sound font.

The SOLUTION: Drag all of the files into the playlist, .aiffs and other files. Then right click on the column bar (where it says song name, artist, time, etc.) select the kind tab so that you can see in itunes what kind of file each is. Now Sort on kind by clicking the word kind. Select the files that are not AIFF's. Create a new playlist and drag the non-aiff files there.

Now in preferences set your importing to "Import Using: AIFF Encoder"

Go back to your non-aiff playlist, select all the files. Right click and it should give you the option to "Convert Selection to AIFF"

It will convert these files and place them in the specified Music folder for itunes...
then your done!!

hope this helps...if someone finds this info useful mail me (David Miraglia)
miraglia at 2007-11-15 17:34:15 >
[an error occurred while processing this directive]
[an error occurred while processing this directive]