Created
November 17, 2012 12:49
-
-
Save sflinter/4095709 to your computer and use it in GitHub Desktop.
Reset the creation date a bunch of files (PDFs in this case) based on a spotlight comment (of the form 'yyyymmdd')
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in *.pdf ; do new=$(mdls -name kMDItemFinderComment $f -raw) ; touch -t ${new}0000 $f; echo $f ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment