Use Terminal to modify a file's metadata

Discussion in 'macOS' started by cookieme, Aug 12, 2009.

  1. cookieme macrumors regular

    Joined:
    Aug 22, 2005
    #1
    Hi

    I have searched, but I can't find a way to simply modify certain entries of a file's metadata.

    If I use mdls <filename> I can see for instance:

    Code:
    kMDItemAlternateNames          = (
        "test.pdf"
    )
    kMDItemAuthors                 = (
        "cookieme"
    )
    
    How can I change the
    Code:
    kMDItemAuthors  = ("cookieme")
    to list "test" as author?

    I have tried to do it in the application that created the pdf file, but I could not find such an option.

    Thanks
     
  2. ritland macrumors newbie

    Joined:
    Apr 15, 2009
    #2
    Did you ever figure this out? I have the same problem.
     

Share This Page