Skip to main content
Participant
October 2, 2014
Answered

Start a new book and add files

  • October 2, 2014
  • 1 reply
  • 397 views

Hi, I'm fairly new to FrameMaker scripting. This is what I'm trying to do and where I'm at:

1) Convert .mif files to .fm files (completed)

2) Start a new book

3) Add each .fm in folder to book in step 2.

Any help in getting started with step 2 & 3 would be greatly appreciated.

Thanks, Kevin

This topic has been closed for replies.
Correct answer Russ Ward

Kevin,

I didn't test anything, but I would think this should work:

var comp = book.NewSeriesBookComponent(0);

comp.Name = "C:\\SomeDocumentPath";

etc.

Russ

1 reply

kevc63Author
Participant
October 2, 2014

OK

This works for creating a book, anyone on adding documents?

var book = app.NewNamedBook ('fmbook');

var name = 'c:\\temp\\testbook.fm';

book.SimpleSave(name);

Russ WardCorrect answer
Legend
October 3, 2014

Kevin,

I didn't test anything, but I would think this should work:

var comp = book.NewSeriesBookComponent(0);

comp.Name = "C:\\SomeDocumentPath";

etc.

Russ