Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

lee1210

macrumors 68040
Jan 10, 2005
3,182
3
Dallas, TX
ChrisA's response is the right answer. You didn't specify if you, by hand, once, wanted to do this, or if you needed it done programatically. If programatically, you can do it with utime().

Again, the manpages are your friend. 'man utime' should get you started.

-Lee
 

lee1210

macrumors 68040
Jan 10, 2005
3,182
3
Dallas, TX
Thanks :)

BTW, did I post to the correct forum?

Probably close enough. If you phrase the question:
How do I change the modified time of a file in my program/script?
That would definitely qualify.

If you asked:
What command do I run to change the modified time of a file?
Not really, even though it's sort of the same question.

You mentioned applescript, that seems good enough for me =).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.