Copy link to clipboard
Copied
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
Kevin,
I didn't test anything, but I would think this should work:
var comp = book.NewSeriesBookComponent(0);
comp.Name = "C:\\SomeDocumentPath";
etc.
Russ
Copy link to clipboard
Copied
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);
Copy link to clipboard
Copied
Kevin,
I didn't test anything, but I would think this should work:
var comp = book.NewSeriesBookComponent(0);
comp.Name = "C:\\SomeDocumentPath";
etc.
Russ