How can I register FDK clients without access to the installed maker.ini?
Hi all, I don't have access to the maker.ini file in the FrameMaker installation. How can I then register FDK clients?I plan to put my FDK clients in a fminit structure in my document folder.Will a...
View ArticleHow do I place a file (A) into a document (B) so that B updates automatically...
I have hundreds of product manuals that all have a generic warning (A) at the beginning. I want to set up all of the manuals B) so that they reference the warning (A). Then when A gets updated, all of...
View Articlegetting body page from text location
Hi there,I'm Fighting with getting the page (BodyPage) of a certain text location. Let's say you have a paragraph, starting on page 1 and ending on page 2.How can I get the FO_BodyPage of second page,...
View ArticleExtendscript/Framemaker Compatibility
Are there release notes or a compatibility matrix that indicates which versions of ESTK are compatible with versions of FM? Specifically, will the "AdobeExtendScriptToolkit_4_LS22.exe" version...
View ArticleExtract 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 ArticleNewbie question for creating new FM document and table.
I have written a little jsx to extract data (mostly formats) from an existing Framemaker document and stored that data into multiple lists but am having all kinds of issues creating new data. How do I...
View ArticleNewbie Question #3: Modifying Table Data
How do I navigate a table and add data to it? For instance:Â var hero = ['Superman', 'Spiderman', 'Wonder Woman'];var fName = ['Clark', 'Peter', 'Diana'];var lName = ['Kent', 'Parker', 'Prince'];Â to
View ArticleLoop through all .mif files in a given folder
Hello, I am trying to write a script that does the following:Asks the user for a folder path.Loops through all of the .mif files in this folder.Opens, modifies, and saves each file. I know how to do 1...
View ArticleSetting property ssval
Hello fellow scripters, I am trying to get a script include a TOC in a generated book. I can add the new BookComponent (copied from a template file) as a TOC, set it to generatable and include it in...
View ArticleHow does one change a tables title to something meaningful
Tables come up with a title of "Table 1:", how do I change that to be more meaningful like "Sale Projections by Region"?  //Create the table  var textLoc, tbl;    textLoc = new TextLoc...
View ArticleSimpleNewDoc also copies the content
Dear all, I want to add a new document to a book and use the last *.fm document (bookfile_3.fm) as template for this: oTplDoc = GetLastDocInBook (oBook);          // use this a a template oEnDoc =...
View ArticleHow to add a table after the first paragraph
I want to add multiple lines of text (each ending with \n) to the first paragraph in a document and then add a table after that. I can create the doc and table but there is only 1 line in the paragraph...
View ArticleFacing an issue in FrameMaker
Hi,I am facing an issue in FrameMaker. Actually, I have an automation flow in which I am opening a book file and reading all the markers from it using frameScript.Everything is working fine but...
View ArticleInserting XRef in document fails for book component
Dear all,Script part InsertXRef2 works correctly when starting in a document (case a). It does not insert the cross reference if the document is a book component (case b).In case a the footnote...
View ArticleIs there a function to 'follow' an XRef?
Putting pieces together.I have a cross reference object and want to follow it to the target object (oXRef.XRefFile, ???),I imagine to do the following:- open the target document- loop until i find the...
View ArticleExternal Link checker utility?
I'm looking for a utility that can check for broken links to external
View ArticleNeed to replace Arial, Times Roman with Calibri in the entire book (FM 10)....
Need to replace Arial, Times Roman with Calibri in the entire book (FM 10). Please let me know the script for this. I am very new to this.Please help
View ArticleMarkers can be found, but are undefined
Dear all,File https://daube.ch/zz_tests/Endnotes-simulated.mif contains markers of type Cross-Ref which all can be found with Find dialogue or a corresponding script.I wanted to replace this method by...
View ArticleHow to stop a search at the end of the flow?
Dear all,In a document are cross references to EndNotes which are paragraphs towards the end of the document. The cross references have a distinct format ("zenref-endnote-reference").I'm able to insert...
View ArticleUpdateXRefs does not update
Dear friends,My whole script now works fine with the exception of the XRef update after inserting a new XRef. It works correctly if the target of the XRef is in the same file as the XRef (oDoc ==...
View ArticleQuery for creating a pdf file from book file using extendScript
Hi All, I am facing an issue while creating the pdf from the book file. I have a book file which consists of multiple chapters some are in the same folder(where book file is present ) and some are in a...
View ArticleHow to set tabs in a paragraph format?
Dear friends,I’m struggling in setting tab positions in a paragraph format.In FDK reference there is a function F_ApiSetTabs(), but this has no equivalence in the Scripting Guide. Hence the following...
View ArticleGet missing fonts and graphics from framemaker using script.
Hi, How to find unavailable fonts name and missing graphics from framemaker using script? Please suggests if any ideas.
View ArticleHow to read framemaker console output using script.
Hi,How to read framemaker console result using script? I want to extract unavailble fonts name from the framemaker document.But i didn't get.So i need to extract the unavailable fonts name from the...
View ArticleHow to extract hidden text from textframe in framemaker using script?
Hi,How to extract hidden text from textframe in framemaker using script?Please suggests if any ideas.
View ArticleThank you all for helping in my recent projects
Dear all,I have published on my web site the following. All this work would not have come to success without your generous help! FMcalc – Calculations in FrameMakerFMcalc uses two marker types: #calc...
View ArticleHow to define a colour?
Dear wise women and men!I definitely have not understood the concept of GetProps and SetProps...It tried to define a new colour by this function and found that no property is set all (inspecting the...
View ArticleTo select all overflow text frames in framemaker using script.
Hi,How to select all overflow textframes in framemaker using script and get the page number for all overflow texframe in framemaker ?Please suggests if any ideas.
View ArticleFirst run of XSLTRunTrScenario is slow
Hi, I am using XSLTRunTrScenario with ExtendScript's CallClient to transform some XML data before using it in a script. The first run of the script is very slow; I am not sure if it is loading the...
View ArticlePlacement of anchored frame fails
"Wecome back my friends to the show that never ends" (don't know from which TV show that is, have no TV).I want to place an Anchored Frame, type "Outside TextFrame".Placing the frame with the UI is ok...
View ArticleAlign numbers along decimals/assumed decimals
I am looking for/trying to write a script to align decimals (and assumed decimals) in a table. FrameMaker does not align a column of numbers in a table to the decimal/assumed decimal. Instead, numbers...
View Article