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.
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.
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)