Skip to content

Batch write on attribute to another? #96

Answered by RhetTbull
KayGundhardt asked this question in Q&A
Discussion options

You must be logged in to vote

@KayGundhardt I realized that this solution won't actually work because it seems that kMDItemFSCreationDate cannot be set. osxmetadata appears to do it without error but the value doesn't get changed. There is a utility shipped with Apple developer tools called SetFile that can do this but I'm not aware of anything else that can change the actual creation date.

Also, I realized after I posted my answer that osxmetadat already includes a --mirror option that causes one attribute to mirror another so in your case, you could use:

osxmetadata --mirror kMDItemFSCreationDate kMDItemContentCreationDate file.jpg

Except that as noted above this won't actually change kMDItemFSCreationDate.

Here's a…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@RhetTbull
Comment options

Answer selected by KayGundhardt
Comment options

You must be logged in to vote
1 reply
@RhetTbull
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants