Enabling background color option in a condition/char tag using Framescript
Hello fellows, AFAIK, Framescript v5.x does not support this option. Am I right? Thank you!
View ArticleAdd paragraphs with text
Dear patient helpers,I want to 'dump' the contents of an array into a series of paragraphs. Two problems appear in my script:- inserting a TAB by \t inserts a NewLine- items are not placed in succesive...
View ArticleText to table?
Hi all Is it possible to produce a script that creates a table from the currently selected text? I can find plenty of discussion about going the other way (ie converting a table to text) but none about...
View ArticleHow to set relative path for the cross references?
Hi,I'm using FDK.I try to work with cross references and I have problem with path name <XRefSrcFile>. Every time when I set it using by F_ApiSetString, it's set as an absolute path and I need to...
View ArticleOpen an RTF document
After a RTF has been processed by EndNote it is opened in FM and the paragraphs are handled.It turns out that I do not need to set special Open parameters to specify the filter RTF (which is requested...
View Articlefile.execute() not working for bat file
Dear all,The purpose of my function copyToWinClipboard (text) is to get a string directly into the Windows Clipboard. The purpose is to allow the user of my project just to paste into the open-dialog...
View ArticleCopy to clipboard
I try to set up a script for this function - but do not get any useful results.Obviously my understanding of TextRange is not complete... CopyToClipboard ("E:\\_DDDprojects\\FM+EN...
View ArticleHow to test for Cancel in ChooseFile
Dear all,Again I'm stuck with some silly problem.When I cancel the ChooseFile dialogue, I want to bail out of the function GetTheFile. However, I have not found the appropriate test for this.The...
View ArticleupdateXRef(srcDoc, xref) framemaker documentation issue
The documentation for updateXRef (Adobe FrameMaker 12 * UpdateXRef) appears incorrect; it references the various constants for updateXrefFlags, however I believe this applies only to updateXRefs and...
View ArticleMissing graphics - how to skip in Open
In my test script to cope with the various open errors I have this definition for the OpenParms: i = GetPropIndex(params, Constants.FS_RefFileNotFound); // Document imports another file that isn’t...
View ArticleHow to get formatted text into arrays
Dear experts and helpers,For my project I import an RTF file and then read the data from it into 3 arrays. This works fine when just using the string contents of the paragraphs. However, the final...
View ArticleHow to create a book folder component?
Hello, I'm trying to create a book folder from a script. From what I understand the relevant methods are "NewSeriesObject" and "NewSeriesBookComponent"; they only take the object name. OK, so I create...
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 ArticleLosing table rulings when setting cell.CellUseOverrideShading = true; How do...
Hi All, I am applying a custom shading to a cell, according to an attribute setting, however after the custom shading is applied, I lose the table rulings that were present. How do I tell it in code...
View ArticleImportExport Show/Hide settings?
Hello, I have just tested the ImportExportVariables which is going to be very usefull for large books where we want to make a selective import of the variables (on a given file of the book, only import...
View ArticleChanging condition properties via ES
Hello fellows, I am trying to change properties of a certain condition tag through extendscript. For example, I'd like add a background color to the condition tag. So I came up with this faulty code:...
View Articleframescript: write to text file
Hello fellows, When I loop through a list of book files and write their names to the FM console, the full list is displayed. However, when I write the list to a text file, only the 1st file name is...
View ArticleSaving a review PDF
Hi all, I'm just getting into Extendscript for FM 12 so bear with me.I have found the FM_Outputs_CondText file which does everything I need it to do except for I want the file to be saved as a review...
View ArticleCreate a QR code in extendscript?
Hello fellow FrameMaker Scripters, I was just wondering if anybody knew a way to use Extendscript to create QR codes in FM. I'm creating several thousand files and would like to be able to tag each...
View ArticleText nodes in a structured FrameMaker file
Hello Scripters, I have a recursive function that touches every element in a structured FrameMaker file. I am trying to find out how to get text nodes as I process the elements. #target framemaker var...
View Article