RhetTbull / osxmetadata

Python package to read and write various MacOS extended attribute metadata such as tags/keywords and Finder comments from files. Includes CLI tool for reading/writing metadata.
MIT License
117 stars 2 forks source link

Add --copy to copy one attribute to another in a file #97

Closed RhetTbull closed 1 year ago

RhetTbull commented 1 year ago

Dear RhetTbull,

first of all: THANK you for the this little but REALLY GENIUS piece of software!!!

:)))

I recovered thousands of photos which - after recovery - were set with new fscreationdate / kMDItemFSCreationDate to the date they were recovered. So their original date when they were shot was lost! :(

Happily I could find with your tool the original contentcreationdate / kMDItemContentCreationDate. Now my question is: is there any way to batch write the one attribute to the other?

I am really a noob in writing batch codes but maybe there could be a way to write out one value to a variable and write it back then to another?

It would take me weeks to check each file and write the date manually .... :o

Any help would be really appreciated!

Originally posted by @KayGundhardt in https://github.com/RhetTbull/osxmetadata/discussions/96

RhetTbull commented 1 year ago

Already implemented via --mirror