Skip to content

Instantly share code, notes, and snippets.

@sflinter
Created November 17, 2012 12:49
Show Gist options
  • Save sflinter/4095709 to your computer and use it in GitHub Desktop.
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')
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