Write Todays Date to file?

Talk, speculate, discuss, pontificate. As long as it pertains to Hazel.

Moderators: Mr_Noodle, Moderators

Write Todays Date to file? Mon Aug 06, 2007 8:27 pm • by majormauser
I would like to write a new "Date Modified" to each file as its copied into my D/L's folder. The Date and time would be changed to the exact time that the file hit that folder... that way I can always see what was the latest file added to that folder.

I Don't think Hazel has this yet.... am I wrong?

Thanks

Chris
majormauser
 
Posts: 1
Joined: Fri Aug 03, 2007 8:24 pm

Wed Aug 08, 2007 4:45 pm • by Mr_Noodle
Hazel does record this as "Date Added" but it's not really visible. In the sample rules, it colors new files by looking at Date Added.

If you specifically want to change the modified time, you can use a shell script like the following:

Code: Select all
#!/bin/sh

touch $1


Save that to a shellscript, make it executable and trigger it from Hazel.

Let me know if you need any more help with this.
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Open Discussion

cron