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

Wowzera

macrumors 6502a
Original poster
Oct 14, 2008
858
28
Brazil
Hello,

I am attempting to change the "Created Date" of some of my files, using the terminal command "touch". While I can successful change the modification date, the created date remains unaltered.

Am I doing something wrong?

Here's the command I am using: "touch -t 1305180000 /PathToFile"

PS: touch -mt does the same thing.


Any suggestion?
 

Wowzera

macrumors 6502a
Original poster
Oct 14, 2008
858
28
Brazil
Copy the files. The copies will have the moment you copied them as their new creation date.

Is there any other quicker way? I mean quicker because I AM talking about copying mkv files for my wd tv live hub and it sort its files by the creation date... :/

Thanks for tour help!
 

Wowzera

macrumors 6502a
Original poster
Oct 14, 2008
858
28
Brazil
Unfortunately not that I am aware of.

What makes you want to change the creation date?

as I have said, I use a WD TV LIVE HUB to watch my .mkv's in my tv. I sort the files by the creation date, so they're listed in the top of the row, meaning I can access them easier.
When I download some files, the creation date is from months ago, so they are in the middle or even in the end of my list, meaning I have to search all over my library to find them.

Changing the creation date to today's date or even yesterday's date will put my files in the top of the file's row, making it easier to find.

So, no terminal tricks for that??
 

chown33

Moderator
Staff member
Aug 9, 2009
10,999
8,887
A sea of green
Can you sort by modification date?

If so, do that. Then use the touch command to change that date.

If you can't sort by modification date, exactly what sorting options do you have? I don't have a WD TV LIVE HUB, but I do know what file-dates 'touch' can affect. Creation date is not one of them.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.