Via the Automation Engine scriptrunner, you can launch an applescript which executes that javascript. In that way, you can automate it starting from within Automation Engine.
When you install the script runner you will see that there are some example scripts being installed next to the software. One example is the EskoAcroCallJSFunction.applescript which is printing out the document. This is an example of an applescript asking Acrobat® Professional to execute a javascript.
The "Run script" task is part of the Automation Engine base.
Via the Preflight with Pitstop ticket in Automation Engine:
Via the Pitstop Profile Editor you can create an Action list, which changes the document information like adding an author, adding keywords, etc...
You can find the action in the Pitstop Profile Editor > Add Keywords > Standard > Metadata > Change document info.
After you apply the action by using the Preflight with Pitstop ticket, the metadata of the PDF will be updated:
The Preflight with Pitstop task is part of the Processor Module.