Newbie 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 ArticleCannot Initialize API Client FrameMaker 2015
I have built a custom client for FrameMaker 2019 using FDK 2019 and Visual Studio everything worked fine. But I want the same client for FrameMaker 2015 in another machine which doesn't have FDK or...
View ArticleProblem with colour assignment
Friends and experts,I have this short piece of code (within function Fgr_BtnAssign) which I try to debug, because results are really odd: // only either of these two is set (localised colour names)...
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 Article