Highlighted

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

New Here ,
Jun 20, 2019

Copy link to clipboard

Copied

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.

TOPICS
Scripting

Views

386

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

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

New Here ,
Jun 20, 2019

Copy link to clipboard

Copied

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.

TOPICS
Scripting

Views

387

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 20, 2019 0
Engaged ,
Jun 20, 2019

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 20, 2019 0
New Here ,
Jun 20, 2019

Copy link to clipboard

Copied

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?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 20, 2019 0
Engaged ,
Jun 20, 2019

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 20, 2019 0