I've downloaded a bunch of my Instagram images but the Date Created of the files is set to the time that I initiated the download. What I do have though is the Date Created in the filename. What I want to do is take the date in the filename, which I've changed to YYYYMMDDhhmm, and set that as the creation date of each file.
I changed the date in the filename into the YYYYMMDDhhmm because this is the format that the touch -t command likes. Now all I need is a way to take the first 12 characters of the filename, pass it to touch -t as the date to touch the file with and follow that with the full filename.
I imagine this could be accomplished with a combination of Hazel and a shell/AppleScript so that the date could be passed on from each individual image.
Cheers for any help :)
touch -twould change the creation date, see apple.stackexchange.com/q/49154/9058 ... Do you want to change the creation or the modification date? Both is possible, but the solution is different. – patrix♦ Aug 20 '12 at 5:32touch -t 201010201000 /Users/smithjw/Dropbox/Extracted/instagram/test/201010201000\ 1287551285.jpgthe creation date would be modified. – smithjw Aug 20 '12 at 5:51man touch. Usels -lUto display the creation date. – patrix♦ Aug 20 '12 at 5:52touch -t– smithjw Aug 20 '12 at 6:03