How do you modify content of a table, but retain the table's UserString?
I have a document containing structured table elements. The tables contain user string information [used by the FDK for tracking purposes], but when I apply a simple script to modify the table...
View ArticleHiding XML elements in the structure view – scripting influence to the...
HiIs there a way to hide specific XML elements (really the elements and not the attributes) in the structure view?I am asking this question to know if it is possible to influence the structure view by...
View Articlesynchronized scrollbars of differents documents (using FM10)
Someone know how can I move two or more scrollbars of documents in the same FrameMaker process? I tried to search in the web but I found anything.. If someone know the code that I can use, please post...
View Article.FirstXRefInDoc not working
Hello,I try to parse xrefs in a doc (and update them), but I have trouble getting the reference to fist xref. var comp = doc.FirstXRefInDoc;returns undefined, although there are xrefs in a file. I work...
View ArticleCan a script execute another script?
Dear colleagues, I am not talking about calling a function from another file for which I used the #include directive. I want to execute a .jsx that I know only at runtime. Until now I have found this:...
View ArticleUndo support around extendscript command
This probably should be obvious, but how can "undo" be supported for a custom command(in Framemaker 10? I found app.beginUndoGroup() for another product but frame gives an unknown method call for...
View ArticleSave PDF with Bookmarks
How to save a book as PDF with bookmarks? I am exporting an open book as PDF using the following script: var params = GetSaveDefaultParams()var returnParamsp =new PropVals()var i = GetPropIndex(params,...
View ArticleNeed help in content chunking..
Is there a way to extract the XPath results as separate XML files? I am currently looking to chunk a large xml file based on certain tags. I tried using XSLT, but I understand that FM 12 supports only...
View ArticleHow do I "Remove Structure from Flow" in a Script
I would like to emulate the "Remove Structure from Flow" in a Script - I have found "FCodes.KBD_REMOVE_STRUCT" but I think that is only used to examine a keystroke in a script.
View ArticleExecuting a program from a script
Hi all, Is there a way to run a program (some exe, with optional commandline arguments) from within a script ? Thanks Jang
View ArticleChooseFile not working to open a directory ?
Hi all, I am creating an installer for my scripts and need to get an istall directory from the customer. It seems that ChooseFile ( ) with the ChooseOpenDir parameter is exactly what I need. But this...
View ArticleHow do I obtain a list of a document's "FontWeightNames"
FM 12 - Javascript I cannot find the correct way to obtain a list of a document's "FontWeightNames" This is as I understand it (but it does not work): var mydocweights = MyDoc.FontWeightNames...
View ArticleNewElementInHierarchy() - Adding New Elements, progressively takes longer...
With my ESTK script, users select model numbers from a list and then the script inserts an element with a model number entered into an attribute, one element for each model selected. When adding a...
View ArticleChanging the color of an object
I have tried very unsuccessfully to change the color of an object:My simplest approach has been: // The current color of a pgf format is Black and I want to change it to Royal Blue var myobject =...
View ArticleWhere can I found a definitive list of JavaScript operators accepted by...
As a JavaScript Newbie (but not a newbie programmer!) I am finding it difficult to find out which JavaScript operators are accepted by ther ExtendScript Editor. I have the latest copy of David...
View ArticleInvalidObject understanding
Hi, I encounter an issue with custom objects, I try to find Element with the function Find(). When I search Xref, row or known elements I get a valid Object. If a search for a custom element like here...
View ArticleI am seeing book.SetProps() and doc.SetProps() crash both FrameMaker 11 and 12.
I am attempting to set the PDFDocInfo at the book and doc level.I can get the active book, get its props, and read and write to the PDFDocInfo. When I add book.SetProps( props ); to the code it crashes...
View ArticleChange Color in CellOverrideShading
Hi all, I tried to change the color in CellOverrideShading but I didn't get it.My attempts were the following:First I tried to get the index of the color property via GetPropIndex: var testProp =...
View ArticleDoc Import Param to suppress XML import validation message
Hi, I'm running a script where the first part is to import an xml document, then to make some changes to the imported xml.Problem is, the xml may not always be valid. If it isn't I would like to still...
View ArticleProcess XML attributes of all tables in a structured document
Hi all, I try to process the XML attributes of all tables in a structured document.When I use SelectedTbl everything works fine for the selected table and the attributes of the tabelle Element are...
View Article