Set File Creation Date

Posted:
Tue Feb 18, 2014 10:25 pm
by jkb
I am trying to update the file creation date of a downloaded statement. So far, I am able to extract the date using content matching. I think that I should be able to then change the file date using the touch command through a shell script but I am unsure of the mechanics. Can someone help me out this this?
Re: Set File Creation Date

Posted:
Tue Feb 18, 2014 11:20 pm
by dhy8386
Not sure this is a Hazel question but i believe you just change create date by running a: touch -t YYYYMMDDhhmm on the file.
Re: Set File Creation Date

Posted:
Tue Feb 18, 2014 11:48 pm
by jkb
Yes, but I has hoping to do this trough a shell script action within Hazel by somehow passing the captured date to the shell script.
Re: Set File Creation Date

Posted:
Wed Feb 19, 2014 1:11 am
by dhy8386
Check out this post. Should help you out:
viewtopic.php?f=3&t=1770