Thursday, 21 July 2011

batch modify creation dates for many files

whenever I download podcasts via bit torrent the creation date on the files is totally all over the place and never correlates to the file names.   Some podcast players only sort files by date thus disjointing all your episodes.
Use the following terminal command to batch modify all the episode files if you put them into a folder.
Add /* to the end of the command.  If you’re only targeting a specific file type include its extension (e.g. /*.jpg).  Your command should look something like this:

touch –mt 201004270930 /Volumes/Mac\ HD/Pictures/Album/*

(the 201004270930 represents April 27th 2010 at 9:30am)

No comments:

Post a Comment