Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Start a new book and add files

New Here ,
Oct 02, 2014 Oct 02, 2014

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

TOPICS
Scripting
368
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Mentor , Oct 03, 2014 Oct 03, 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

Translate
New Here ,
Oct 02, 2014 Oct 02, 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);

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Oct 03, 2014 Oct 03, 2014
LATEST

Kevin,

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

var comp = book.NewSeriesBookComponent(0);

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

etc.

Russ

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