Automator: "Set PDF Metadata"

Discussion in 'Mac Programming' started by SALEEN00SR, Jan 27, 2010.

  1. SALEEN00SR macrumors newbie

    Jan 27, 2010
    How can I get a selected items filename and enter it into the "Title" textbox of the "Set PDF Metadata" automator action. I am trying to easily update a PDF's metadata "Title" property with its current filename.
  2. kamarya, Sep 19, 2011
    Last edited: Sep 19, 2011

    kamarya macrumors newbie

    Sep 19, 2011
    i would like to have an answer for that because i also have a lot of pdf that i need to edit their metadata depending on their filename since and doing it one by one is way too time consuming.

    i've heard about calibre to edit metadata & i used it for a while & it worked just fine & suddenly it no longer works.
  3. kamarya macrumors newbie

    Sep 19, 2011
    oh i figured out what i did wrong.

    in calibre, first change the preferences :
    adding books - uncheck read metadata from file content rather than filename. and see other options...(you can change author lastname and firstname)

    if your filename is {author} - {title} then change the preferences accordingly in the regular expression to (?P<author>[^_]+) - (?P<title>.+). by default it reads it as {title} - {author}.

    add the books pdf or epub and then
    edit meta data individually or in bulk. it will read metadata from filename
    then select pdf & save it to disk (don't forget top save it)

Share This Page