Set File Creation Date

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Set File Creation Date 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?
jkb
 
Posts: 2
Joined: Tue Feb 18, 2014 10:21 pm

Re: Set File Creation Date 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.
dhy8386
 
Posts: 94
Joined: Tue Nov 09, 2010 12:19 pm

Re: Set File Creation Date 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.
jkb
 
Posts: 2
Joined: Tue Feb 18, 2014 10:21 pm

Re: Set File Creation Date Wed Feb 19, 2014 1:11 am • by dhy8386
Check out this post. Should help you out:

viewtopic.php?f=3&t=1770
dhy8386
 
Posts: 94
Joined: Tue Nov 09, 2010 12:19 pm


Return to Support