Script to split FrameMaker file at heading level

Keith Soltys keith.soltys at tmx.com
Thu Feb 9 12:11:56 PST 2012


Well, if you can create such a plug-in, I'd be interested in trying it. I'm using FM10 though, not FM9.

I'm not too worried about the file naming - I will probably have to write a script to insert file name markers  for WebWorks to use and I think I could hack that to rename the files.

Regards
Keith

From: framers-bounces at lists.frameusers.com [mailto:framers-bounces at lists.frameusers.com] On Behalf Of Chris Despopoulos
Sent: Thursday, February 09, 2012 1:40 PM
To: framers at lists.frameusers.com
Subject: Re: Script to split FrameMaker file at heading level

I created a dll plugin in Maker 7 that does this.  I could pretty easily build a Maker 9 version of it, anyway.  I doubt it would be incompatible with Maker anything-later.  All Ido is look at markers in the TOC and use that to build up smaller files.

I assume a few things:
* You have a book for your files
* You have a TOC with hypertext links
* All files in the book are open
* You invoke the command with the TOC active
* Your TOC has pgf formats with with the string "TOC" as a suffix

So then I loop through the TOC, and get pairs of the hypertext markers to identify the file and pgf range for each section.  For each range, I create a new doc file and copy/paste that range into it.  I forget how I name the files...  And it's then up to you to make sense out of the huge collection of files you end up with.

cud

NOTICE OF CONFIDENTIALITY This e-mail, including all materials contained in or attached to this e-mail, contains proprietary and confidential information solely for the internal use of the intended recipient. If you have received this email in error, please notify us immediately by return e-mail or otherwise and ensure that it is permanently deleted from your systems, and do not print, copy, distribute or read its contents.

AVIS DE CONFIDENTIALIT? Le pr?sent courriel, y compris tous les documents qu'il contient ou qui y sont joints, renferme des renseignements exclusifs et confidentiels destin?s uniquement ? l'usage interne du destinataire pr?vu. Si vous avez re?u le pr?sent courriel par erreur, veuillez nous aviser imm?diatement, notamment par retour de courriel, et vous assurer qu'il est supprim? de fa?on permanente de vos syst?mes; veuillez ?galement vous abstenir d'imprimer, de copier, de distribuer ou de lire son contenu.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.frameusers.com/pipermail/framers-frameusers.com/attachments/20120209/bd468eab/attachment.htm>


More information about the framers mailing list