I have this question too. I realize this is an old thread but I'd like to reinvigorate the issue.
I’d like to find a way to write a Hazel rule to update the internal PDF metadata fields. In particular I’d like to create a script or a rule that writes the current "Date Created” from the MacOS file system, into the PDF “Creation Date” meta data property.
If I could do this, then my documents would be portable to external file systems, NAS storage devices, Dropbox etc, in a way that would preserve this data independent of those filesystem limitations.
DETAILS:
I’m using Eaglefiler to store my paperless library of PDF scanned docments. I have more than 7 years worth of documents stored in my Eaglefiler library. I’ve developed an effective automated workflow using Hazel that works well for me.
I use Hazel and a set of individualized rules to import newly scanned or downloaded documents into Eaglefiler. My workflow includes a step to alter the File Creation date, because often I scan documents that were created weeks before I scan them. I also assign MacOS file attributes like colored tags and keywords when I import new documents into Eaglefiler.
Recently I’ve been looking at the option to store my document library in a new place where I can access them from other computers and portable devices via the cloud. But every option of storing my document library remotely seems to involve losing the file properties including the Date Created as well as other keywords and colored tags.
It occurred to me that since almost all of my documents are PDF files, it would be really cool if I could preserve these file attributes inside the PDF files as PDF keywords and metadata.
PDF files have an internal set of properties including Title, Author, Subject, PDF Producer, Content Creator, Creation Date, Modification Date, plus an array of keywords.
My research seems to indicate that an Automator script may be the key to writing PDF metadata using the "Set PDF Metadata” method. But I’m not very familiar with Applescript.
Can anyone help please?