How to write stuff to the console
Hello all, I know I have seen the method for writing some message to the FM console somewhere, but searching the Scripting Guide for the word 'console' does not take me to that info. Can anyone tell me...
View ArticleHow do you rename a component file (in a book) from the FDK?
...and upate all the links?
View ArticleEdit Script opens Notepad, not ESTK ?
In the documentation for FM10 and FM11 it says that clicking the Edit button in the Script Library panel opens the script in the ESTK editor. Not on my machine: it opens in NotePad instead. Is there a...
View ArticleStrange behavior of breakpoints
Hello fellow scripters, I have a problem with the behavior of breakpoints in the ESTK. If I set breakpoints inside an if / else construct and start the script, the ESTK automatically changes those...
View ArticleHow to get selected images?
Hi all,can anyone help with getting a list of selected images?E.g., to get selected tables I usedoc.GetTextForRange(doc.TextSelection, Constants.FTI_TblAnchor) Thanks in advance!
View ArticleCalling one script from another
InDesign has a nice mechanism for calling one script from another, so code can be made modular. What about FrameMaker ExtendScript? What methods are people using to call one script from another? Thanks...
View ArticleImport method does not work
Hi there, Does anyone have experience in using the Doc.Import method to pull another FM file in via a script? I have tried all settings but Frame does not recognize the file type, even though it is a...
View ArticleNeed some support with syntax from FDK to ExtendScript : Getting FontFamily
Hi there, I am using some scripts to traverse my text and add tags to specific characters when they use a given font. This works fine if the PlatformName is known, but every now and a while these seem...
View ArticleHow to know if an object is a File or a Folder ?
Hello again, I am looking for an easy method to determine whether a File or Folder object point to an actual file or to a folder. Both objects seem to have the same set of properties, except the File...
View ArticleChanging one font into another using extendscript
Hi there, I've been trying to replace one font by another, but no success , and it seems hard to find some good examples on how to do this, though it looks to me like something rather common to do with...
View ArticleHow do I convert Word to Frame 7.2, and replace the styles with other tags?
How do I convert Word to Frame 7.2, and replace the styles with other tags? E.g. Normal > Body1, Heading 1 > H1, etc.
View ArticleKeyboard shortcuts in custom commands
Hi. I am trying to specify Control+, as a keyboard shortcut in a custom FrameMaker command defined in an ExtendScript script. I am using this: var cmd1 = DefineCommand(1, "LinkToHeadingStepOne", "L1",...
View ArticleAdding a folder to a book
Hi, I am trying to add a folder to an empty book, which I have as the ActiveBook. This does not work: #target framemaker var book = app.ActiveBook; var folder = book.NewBookComponentOfTypeInHierarchy...
View ArticleTable to text
I need to convert all Note, Caution, and Warning tables to text. These tables only have one row. So my concept is:Search through the active FrameMaker document for a tableIf the table has only one row,...
View ArticleBoolean Condition Expressions
Unlike Condition Formats, Paragraphs, etc., Boolean Condition Expressions are apparently not stored in a linked list. In ExtendScript, you can get a list of the Expression names with this: var doc =...
View ArticleMicropositioning i character-definitions
I'm working on a quite large project in structured FM, where I got a lot of fractions. The content is imported in an xml-file (where I have defined elements for the numerator and the denominator), and...
View ArticleFormatting elements with pgfFmt
Hi all, I'm a complete beginner at FrameMaker and scripting of the same, and I've been tasked with converting S1000D documents in XML format into FrameMaker files using an unstructured template. I've...
View ArticleIs it possible to conver Frame maker file into PS using FDK
Hi All ,Just wanted to know quickly is there any popsibility to convert Framemaker files into PS (Post Script) using FDK script.We have done successfully conversion of Framemaker to PDF using FDK...
View ArticleSetting a condition tag on an element
Hi all, I've got a bunch of XML files that I import to FrameMaker using a custom structured application based on S1000D. I would like to not show some of the data in the XML files in the final FM...
View ArticleHow to transmit the data?
In this script I create a window with an Edittext field and two buttons. The user can write something in Edittext field. How to read these data? I want to use it like a pattern in regular expressions.I...
View Article