Possible to batch process? Change the Modification and Creation dates of a file - Sonoma

I have about 100 files that were created with the wrong dates. I found these instructions


People seem to have a lot of trouble in the past changing these dates, but I've successfully used the base level touch -t in Terminal:


To change the creation date of a file in terminal paste in the below: (that will make the date 2001, january 15, 11:50pm - change it to the date you want - format is YYYYMMDDhhmm)


 touch -t 200101152350 


make sure there is a space after the last digit (this is where most people fail, inclucing myself until I realized it was missing.)


then drag the file into the terminal window so it populates it with the file path, then press return and it should work. Text should look like this before you press return:


touch -t 200101152350  /Users/g/Desktop/IMG_4074.jpg 


in this post:

Change the Modification and Creation date… - Apple Community


Given the large number of files I'd like to change, does anyone know of a way to batch process multiple files to change their dates?


Thanks,


Myles


M1 Mac Studio/15.3.2

Posted on Mar 30, 2025 3:18 AM

Reply
6 replies
Sort By: 

Mar 30, 2025 6:25 AM in response to mylesdevon

I use A Better Finder Attributes. Nice product & UI, does the job well. No terminal commands involved.


The author also makes A Better Finder Rename & Nifty File Lists, equally good apps.


Note: I use these products myself and have found them useful. I am not connected with the vendor nor do I receive any compensation for suggesting these products.

Reply

Mar 30, 2025 6:06 AM in response to mylesdevon

How do you plan to introduce a different date/time value to each of these Pro Tools files as setting it to one value would wreck a date sort effort? Can you sort them by kind, or name instead?


I have been using various UNIX operating systems for literally decades and never found it necessary to alter the original creation/modification date of files.

Reply

Mar 31, 2025 5:08 AM in response to mylesdevon

Found a nice little app called File Date Modifier for cheap that takes care of this. It doesn't have find-and-replace capabilities, so you have to group files with the same date/year, but I had over a hundred of these when my system somehow was adding 8 to the year created/modified.

Reply

Possible to batch process? Change the Modification and Creation dates of a file - Sonoma

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.