Home Questions Tags Users Unanswered. Changing Creation Date of a file Ask Question. Many thanks for your help. The "coder" explanation other people have written about is probably a reference to "touch".
- kraft dinner mac and cheese calories.
- 67 comments.
- Your Answer;
- best circuit design software mac?
- How to change the created date of photo on mac?!
You'd have to open a Terminal, navigate to the folder where the file is then use the touch command to modify the fie's creation date. FWIW You are on the right lines with "touch-t", but there is a space between the h and the -. Lri Lri I wrote a function called CpCreationDate in fish: To see this, let's experiment and create a new file from the command prompt: To modify access time atime to a specified time use: In summary, to be able to change the four timestamps independently, one may use in this order for the last 3: This solved all my woes.
Typing the following will set the last modified date of the file to the current time: Some set the time to be the time of another file, some set it to go back, or forward in time by X amount, see here for more details , eg: How to change the date created attribute of a file?
But touch modifies the modified date, not the creation date of the file. It can do both. Depends on the parameters. Using touch with the parameters you gave above changed the modification but not creation dates for my test file. Daniel You probablly got your answer, but for completeness sakes touch does modify the creation date depending on the arguments. If you supply a modification date that is before the file's creation date, the creation date will automatically change to the new modification date value, as a file cannot be modified before it is created.
I just tried this on Sierra and touch definitely does not change the creation date. I was able to change access and modified dates to a "date in the past", but it did not modify creation date. Check the man page for touch, it does not mention creation date. File system: I now use a simple Automator Workflow to batch change multiple files: Claudio Wilmanns Claudio Wilmanns 71 1 1. Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.
Linked 0. Related 3.
How to Change a File’s Last Modified and Creation Dates on Mac OS X
Change a File’s Last Modified and Creation Dates on Mac OS X and Linux - weetutenre.tkv
Generally the top sites are full of garbage. Sorry for late reply, but these commands can only change file system created and modified date.
If you want to change video metadata — you need to use some video editor. Had a whole month of pics on my Mac with the wrong year originally set on camera. Been stumbling through confusing websites and youtubes before I found your clear explanation. This does not work anymore. Any idea how to write the date nowadays ? I made this: You need to add space after -t argument: Hi there, I am trying to change only the date modified but when I use touch -mt… it changes both the date created and date modified.
Am I doing something wrong?
How to Change the File Date in the Mac Finder
Hi thanks for the clear explanations, I had the same problem forget the space after the argument. Could you advise me how to change the creation date too? Please try to change date to something in future first, and after it change to needed one. Many thanks for your answer. I found something that works, downloaded a tool to use with automator and that works: If needed, I can send it.
Thanks again Cheers. Thank you so much for giving the link to that website.
Related change creation date mac os x
Copyright 2019 - All Right Reserved