[Framers] Convert ALL text insets in All documents of a book automatically?

Rick Quatro rick at rickquatro.com
Thu Jul 21 06:41:11 PDT 2016


Hi Stephen,

If you have FrameScript 6, you can use this code to convert all of the text
insets in a document to text. It could be modified to work on all of the
documents in a book. If you don't have FrameScript, I can look and see if a
function like this is available in ExtendScript, which is built into
FrameMaker 12. Please let me know if you have any questions or comments.
Thank you very much.

Rick Quatro
Carmen Publishing Inc.
585-366-4017
rick at frameexpert.com

Function FlattenTextInsets oDoc
//
Local oTi(0), iResult(0);

// First, unlock all of the insets.
Set oTi = oDoc.FirstTiInDoc;
Loop While(oTi)
  Set oTi.TiLocked = 0;
  Set oTi = oTi.NextTiInDoc;
EndLoop

// Convert the text insets to text.
Set oTi = oDoc.FirstTiInDoc;
Loop While(oTi)
  Set iResult = eUtl.ConvertTiToText(oTi);
  Set oTi = oDoc.FirstTiInDoc;
EndLoop
//
EndFunc
//--------------------------------------------------------------------

-----Original Message-----
From: Framers
[mailto:framers-bounces+rick=rickquatro.com at lists.frameusers.com] On Behalf
Of Stephen O'Brien
Sent: Thursday, July 21, 2016 9:28 AM
To: Frame Users (framers at lists.frameusers.com)
Subject: [Framers] Convert ALL text insets in All documents of a book
automatically?

Hi,

I am using FM 12 and have several books with over 70 documents, all
containing text insets.

When I generate the monthly PDFs, I copy the files to my PC, convert all the
text insets document by document for each book, then update the books and
print the PDFs.

I convert the text insets because I have some titles in my text insets.

I am looking for a way to convert all of the text insets throughout a book
automatically.

Any suggestions (scripts, add-ins)?

Many thx,

Stephen O'BRIEN




More information about the Framers mailing list