How to update an array of objects ?
Dear friends,I have a number of objects stored in an array. It seems that the array does not point to the objects, but has copies of them.The item in the array is only updated with array[index].prop...
View ArticleHow to extract a string from a TextRange
Dear Experts,How can I extract the string "=?utf-8?B?LDvGhsLCBGcmybYk?=" between the coding markers? Currently, I am able with the help of code likestartText = activeDoc.Find(startText.beg,...
View ArticleScript to automatically create links
Hi all,the cross references in a set of FM documents were lost in the translation process so the sources and the published PDFs contain plain text parts such as "see chapter 4.6.2.1". I imagine that...
View ArticleHow to unregister script programmatically ?
Friends, Romans, Countrymen!Lend me your ears! [Shakespeare: Julius Cesar] During testing a script wich has a notification It is necessary to uninstall it every time before it is run again (after some...
View ArticleScreen refresh triggers document change
Dear all,In my script I have set up this notification: Notification (Constants.FA_Note_PostActiveDocChange, true); I have now noticed that this is also triggered (executing the Note function) in the...
View ArticleUpdating a global array
Dear friends!I do not remmber what I have done some days ago - global arrays are no more updated. I have cut it down to this mechanism:var arrayOfObjects = []; // global Array UpdateA...
View ArticleESTK quirks
During development of my script I do not use the (established FM-)menu to invoke its functions, but normally test via ESTK.Of course I expected the same beahviour in using Notify whether I start the...
View ArticleRun script over mulitple mifs, save and close
Hi there, I have a folder of mifs and I want to run the same scripts over each mif, save each, and close them. Is this possible with extendscript? Regards
View ArticleReading raster image DPI while importing
Hi All,Creating a simple script to import a graphic into an anchored frame document. All is working fine, but I cant find a way to read the DPI from the raster image so I can modify the now hard-coded...
View ArticleHow to remove the "Author" value and write a new author name
Hello, I'm a dummy with scripting. I hope some experts can help me.I'm working with FM11 and extendscript. Now we have to insert metadata into the file info like "Author", "Title", "Keywords",....As...
View ArticleExtend script
Hi there, I am new to scripting. I need a script for updating cross references in a book. I am using licensed version of Frame Maker 10. I am using Extend script. Thanks,Isha
View ArticleExtracting OLE objects and saving as separate files
Hello fellows, Before I dive deep into the Framescript/ES methods, is it possible to extract linked Excel/Visio (OLE) objects from a Framemaker file and save them as separate files to a certain folder?...
View ArticleTrouble Setting the structured app on import - FS_StructuredImportApplication
Hello All, I have some referenced documents that I refresh when opening the parent document and I am trying to set the structured application on import. I am using> var...
View ArticleScript to sort table in ascending order
Hi, I am not able to find any frame maker function to sort the table in ascending order with respect to column 1. Please, guide me how I can write the extended script in frame maker to sort the table....
View ArticleDisplay file on screen when processing book
Hi everyone, I am working on a complex script to search and replace certain terms. In essence, it searches for the offensive term, shows it on the screen in the file and gives you a dialog box with a...
View ArticleEnd Element of a ElementRange
First, here is a picture to illustrate what I am trying to do:Given an ElementRange, I am trying to find the upper and lower boundaries of that range, as in the FP_LocY values (show visually in...
View ArticleAdd an Element to an ElementRange
Here is a screenshot to illustrate my question:I have an ElementRange as illustrated by the selection in the screenshot. I need to add the two follow li elements to the ElementRange because they have...
View ArticleES: Passing a function variable value to another function
Hello fellows, Let's say I have a function that includes a variable as follows: opendoc = Open(<doc_name>, openParams, openReturnParams); I'd like to use opendoc in another function to import...
View ArticleInvalid property does not create an error
Dear experts,In a script inserting a marker I had a typo on line 08:function InsertMarker (oTtextRange, sMarkerName, sMarkerText ) { var j, textLoc, marker, markerType, thisId, thatId, lenMarkerArray;...
View ArticleSave Ditamap as FM Book with Component?
Hi All,Am using ATCS 2015. Going through various forums, I know that there is a script to save FM Book to PDF.Similarly, is there any script to save a Ditamap to FM Book with Components? Any help is...
View Article