Correct way to search for character within a string
I am trying to search for the occurrence of a "(" within a text string - unfortunately my code is reported as incorrect. I extract the text correctly but cannot create the search statement correctly:...
View ArticleLooking for Scripts that Replaces Text and Master Pages (Batch Missing Files...
I have just found the Script Library panel in FM 10. (Always used InDesign before.) I'm up to replace a text string and two master pages in 100+ documents. Tried to google for some nice solutions to...
View ArticleRange comparison
Hi all, I'm new in FDK and try to compare two ranges to define which of them is the first one in the document. But I didn't find any function in FDK.Does anyone know ways to do it?
View ArticleHelp F_ApiEnableUnicode(True) returns -1
With FM 12 and fdk 12 the F_ApiEnableUnicode(True) returns -1. Help me pls. The function is not working, with FM 10 I haven't this kind of problem. I tested the following code as described in...
View ArticleHelp F_ApiEnableUnicode(True) returns -1.
With FM 12 and fdk 12 the F_ApiEnableUnicode(True) returns -1. Help me pls.
View ArticleStart a new book and add files
Hi, I'm fairly new to FrameMaker scripting. This is what I'm trying to do and where I'm at: 1) Convert .mif files to .fm files (completed)2) Start a new book3) Add each .fm in folder to book in step 2....
View ArticleApplying a Character Format to a Character
I am trying to apply a character format to a single character. I have tried : MyDoc.SetTextVal(myrange,Constants.FO_CharFmt ,"RoundFont") and var charFmtId = MyDoc.GetNamedObject(Constants.FO_CharFmt,...
View ArticleScript does not work anymore after updating to FM 12.0.3
Hi, With TCS5, Robohelp would crash when importing FrameMaker books to RH, because the FM files had embedded graphics. So, I found a script to externalize the graphics before doing the import (the...
View ArticleAdd text in "Track edit changes" mode
Hi all, I have a question related to text changing from API (FM 10 and 11). If "Track edit changes" is enabled and I try to add a text using F_ApiAddText function then these changes are not appeared as...
View ArticleES for FM10: Adding text at insertion point
Hello fellows, What's the code for current insertion point (where the cursor is currently placed?)I saw code for adding text in the beginning/end of pgf but not at the current insertion point. Thank...
View ArticleDeleting condition formats but saving the contents
Hello all, I hope someone from Adobe is monitoring this list, as there is lots of stuff that requires either more work on the ExtendScript coding or on the documentation. I have almost finalized my...
View ArticleWhy is my startup script getting a timeout error in FrameMaker?
Using FM 11ExtendScriptWindows 7 I'm running an ExtendScript from the FM Startup directory, by starting FM from a batch file. The Extendscript opens multiple book files (one at a time) and does a save...
View ArticleCreating a variable that contains the value of the Modification Date (Long)...
Can someone tell me how to write a script for creating a variable, named DocDate, that contains the value of the Modification Date (Long) system variable? Or to write a script that creates a...
View ArticleFit Frame to content
I'm using Frame maker 10, and need text frame need to fit into content. What I'm doing is drag the frame manually. Is there any shortcut or script for this?@
View ArticleDisabling notification that was enabled in code from an old Extendscript script
Not knowing much about notification, but believing that I wouldn't do anything that couldn't be undone, I experimented with using notification in an old script (which I'll call oldScript.jsx for...
View Articleinsert inset in anchored frame
I cannot find the info on how to insert an Inset into an existing AFrame using ExtendScript. Does anyone have experience with this? Thanks Jang
View ArticleCreate new Unanchored Frame not working?
Hi everyone. What i am trying is creating an empty frame for graphics.i´m using Extendscript for this purpose. I can create Frames with Graphic. but no empty Frames.I Tried following code:...
View ArticleIs there some example for creation a TOC for a FM Document?
I have some ElmScript and want to turn that into an Extendscript, but i have some problems with it. This is the ElmScript Function. Sub IHV_Ebene1; If fslVersionMajor < 3 MsgBox...
View Articlehow to re-size a overflow text frame based on the text length?
Hi ..Is it possible to re-size a overflow text frame based on the text length?
View ArticleHow to find a text in the Frame maker document via script?
How to find a particular text in the Frame maker document via script?
View Article