FormatChangeList property integer value mystery
I am using ExtendScript to dynamically manipulate the formatting of a structured document. It's all working quite well except for one mystery... Given an EDD that has a text formatting rule where the...
View ArticleCreating new pgf object
Hello to everyone, first of all: I am pretty new to FM and ExtendScript. I am integrating some old .mif files into existing FM documents with ExtendScript.I am loading the needed parameters via propVal...
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 ArticleHow to clear and set a new string to a textframe ?
Hello forum. A simple question that seems to be easy . How to clear a textframe and set à new string in it. assuming this code : if (textFrame.ObjectValid()) { if (textFrame.constructor.name ===...
View ArticleFrameMaker Script to open readonly books
Hi,Is it possible to open readonly books in FrameMaker using a script? I have tried the SimpleOpen(), Open() and the execute() methods and have not had any success. Any help would be appreciated,...
View ArticleParameters to the Notify function
Dear friends and expertsIn my script I have defined Notification (Constants.FA_Note_PostOpenDoc, true); And in the Notify function I normally get these parameters (logged):Notify: iNote= 2 sParam=...
View ArticleESTK workspace not persistent anymore
Dear friends,Since a while - propably an FM update - the selected workspace (DDD) is lost after closing ESTK CC (4.0.0.1, ES 4.5.5, ScriptUI 6.2.2).At the next open of ESTK the selected workspace is...
View Articleapp.Displaying considered unreliable
Der friends,The white document hits again... ( see https://forums.adobe.com/thread/2276988) and I tracked it down to failing app.Displaying. The script requests function SetDisplay (bWanted) 17 times...
View ArticleOpen FrameMaker Application and Open a .fm Doc
Hello friends, I want to implement following feature and wanted to ask, if you could help me accomplish this. I want ExtendScript to open FrameMaker, every time the script is started. After this, i...
View ArticleHow to display busy cursor or progress bar in FrameMaker Extendscript
Hi, Is there a way to change the cursor to hour glass/busy, or display a progress bar. Thank you in advance, AZ
View ArticleDeleting an xref format from a book
Hello fellows, I need a framescript that deletes a specific xref format (e.g., "API") from a book. So I've decided to write one for the sake of practice. I came up with the following code. When running...
View ArticleOne difference between FM10/11 and later FM versions
Dear all,I want to inform you that there is a subtle difference in the Find function between scripts for FM-10/11 and the later FM versions.See the relevant script part (function CollectVarsInDoc, line...
View ArticleUsing Save() method to save as PDF
Hello everyone, I am trying to save a FM-Doc as PDF and using the Save() method.The method does not work correctly. I am getting no saved PDF file, and while execution I get a InvalidObject.Could...
View ArticleExtendScript - Change starting engine
Hello friends, i am currenly working on customizing FrameMaker with ExtendScript.When I completely restart ExtendScript Toolkit, I always have to change the "main engine" (don't know if this is the...
View ArticleImport MIF files -> pgf problem?
Hello friends, once more I have a question for you all. I am importing .mif files with this function: function render_file(file_path){ var doc = doc_GLOBAL; var importFile = File(file_path);...
View ArticleExtendScript limit on how many paragraphs can be processed
I received a bug report on my FindChangeFormatsBatch ExtendScript script yesterday where the issue was a crash on two particular documents. Both documents contain a large amount of tables and, because...
View Articledoes extendscript manage multidimessionnal array ?
hello forum. i don't undestand why ES does not restitute correctly the data i input in the array. i use the code of the export of "ExtendScript of the Week: Import and Export Variables "i need to...
View ArticleIs there a Framemaker Extendscript object model?
I am looking for any information on this topic. I have used FM for decades, but never delved into scripting. Now that I wish to do so, I find that all sorts of Adobe products have object models...
View ArticleFrameMaker: FDK or Extendscript how to capture keyboard input
I am writing an plugin for Framemaker that needs to capture text as it is entered by the user dynamically in order to check if any similar segments have already been entered using an author memory...
View ArticleProgrammatic copy vs. manual copy
What is the hidden secret here?The script is copied from a desktop-subdirectory into FrameMaker Startup by mans of an installation program.The script is manually copied (using File explorer) from the...
View Article