Skip to main content
mattr38950395
Participant
June 20, 2019
Question

I would like to have a script that opens and publishes all .fm files in a directory to PDFs

  • June 20, 2019
  • 1 reply
  • 697 views

I have hundreds of product manuals that all have a generic warning (A) at the beginning that has been imported into all of the manuals (B). Then when A gets updated, I would like to have a script that opens all of the .fm files (B) in a directory and publishes updated PDFs with the updated content from A.

I am not familiar with Framemaker, but do have experience with Photoshop Actions for performing batch edits.

This topic has been closed for replies.

1 reply

Inspiring
June 20, 2019

See functions

doc.open

doc.save (GetSaveDefaultParameters)

That's the way you have to go.

Please see the FM EULA. IMHO it's not allowed to do such Automation by the EULA. You need FM Publishing Server license to do this. And than there's no need for Scripting, as you can publish in a nightly build if Textinsets update automatically.

Hope this helps

Markus

mattr38950395
Participant
June 20, 2019

Thanks for your response. I am sorry but I am still a bit lost. I don't see any doc.open or doc.save in the script editor. Can you please add more detail?

Inspiring
June 20, 2019

Sorry!

Open is a global function, as well as GetSaveDefaultParams. There's also a SimpleOpen function

But save is a method of doc object.

If you open ESTK press F1 and switch to FrameMaker object model. Then you will get a list of FM objects and for each object a list of properties and functions.

Please see also Scripting Guide in FrameMaker Developer Center

Hope this helps

Markus