Extract the paragraph tags used in the TOC
Is there a way in Extendscript to extract the paragraph tags used in the TOC? I see them in the book's MIF as DeriveTag, but I don't see a property or method that would return them.
View ArticleHow can I split a .fm document based on the h1/h2 headings using extended...
I have a .fm document that I need to split into multiple files based on h1 or h2 paragraph tags. The headings and its content should be copied or saved/split into separate files.
View ArticleHow can I split a .fm document based on the h1/h2 headings using extended...
I have a .fm document that I need to split into multiple files based on h1 or h2 paragraph tags. The headings and its content should be copied or saved/split into separate files.
View ArticleWhat's the ExtendScript command for updating a FrameMaker book?
I have some scripts adapted from the FM_Outputs_CondText.jsx sample in FM10, but I just noticed today that the book is not getting updated. Seems like I need something in between these two commands:...
View ArticleSave All Open Files Constant - Exists?
Hello fellows, In the Scripting Guide, I don't see such a constant. Is there such a thing? It is the same as <Shift> + Click File --> Save All Open FilesI need it for an event script. Is there...
View ArticleScript to detect gray boxes for missing graphics
Hello Community,I cannot find an Inset property that will let me know if a graphic is not being displayed because FM could not find the source. I have the oGraphic.InsetFile property but don't see how...
View ArticleFrameScript issue with DialogBox Type(MEdit)
Hi when I run this framescript: DialogBox Type(MEdit); FM17 is freezing and not showing anything. It was working a day ago. Other types (ex. Scrollbox, ChooseFile) are working fine. Have you ever...
View ArticleFind an XRef backwards - not successfull in all cases
Dear Friends,Again I have probably a weird idea: Add a cross reference in front of a footnote reference which points to that footnote.See the FM document (FM15).The cross reference text to be inserted...
View ArticleMoving menu commands
Has anyone had success adding custom commands to FrameMaker menus and then moving them to different locations on the menu? I can do this with the FDK and FrameScript but I haven't had success with...
View ArticleCopy text to Windows clipboard
Is there a trick to copy text to the Windows clipboard?I'm using doc.Copy(0) and I'm getting selected text into the clipboard but it only pastes into FrameMaker and not on Windows (outside of FM).I...
View ArticleHow can I run extendscript in framescript
Hi I want to run extendscript in framescript. is it possible ?
View ArticleConversion to Extends Script from FrameScript
Hi, I want to convert my frameScript code into extends script. And as we know in frameScript most of the functions are predefined and i am not able to find the alternate of those function in...
View ArticleFind does not honour parameter textLoc
Dear friends with the sharp eyes and clear thoughts:I'm puzzled. I have this piece of code (get the full script and the test document from here): foundTR = oDoc.Find(tloc, oFindParams); // find...
View ArticleHow to execute a FrameMaker command (ExtendScript)
Hi, does anyone know how to execute a command that your script did not create? In particular, I want to invoke the Edit > Update References command and launch that dialog box. Thanks,Russ
View ArticleWhats the 'parent' of a footnote?
Dear friends and wizards! You all do know how to traverse the universe of footnotes in a document:oFn = oDoc.FirstFnInDoc; while (oFn.ObjectValid () === 1) { // do stuff } oFn =...
View ArticleInsert a paragraph object somewhere else
Dear friends, It seems that I stretch my knowledge to far...I have collected footnotes in an array aoFNcollected.A heading has already be placed: oPgfNow I want to place the FN paragraphs to a new...
View ArticleSave As PDF (F_ApiSave) occasionally overwriting random PDFs
Our production environment is experiencing a random bug that is very difficult to reproduce. Every now and then (about 1 in 100), when our customised code saves out a PDF, it fails to create the PDF it...
View ArticleStrange behaviour at bottom of page
Friends of FrameMaker and ExtendScript! With my script Convert Footnotes to Endnotes I got weird results and hence stepped back to the simpler case of just copying...
View ArticleNewbie Question #1: Creating New Document
I have written jsx scripts from existing documents but am having issues creating new objects. How do I create a new blank portrait document? the app.documents.add() command does not work for me. The...
View ArticleNewbie Question #2: Creating Tables
How do I add a 5 row x 3 column table with headers to a document? I have written a little jsx from existing documents but am having issues understanding how to create new objects.
View Article