Getting rid of a notification
I have tried notification and decided there are too many problems with it. But no matter what I do now, the Console keeps showing the same notification error with every file I open. I had a...
View ArticleHow can I find out if a structured doc is valid?
Hi all, I need to establish the validity of a Doc before my script transforms it to XML and applies an XSLT in the process. I have searched the FM12 scripting guide but cannot find any Doc property or...
View ArticlePatternstream and Framemaker Publishing Server 12
What's the best way to make sure an FDK (Patternstream in our case) fires up with every job on Framemaker Server 12, and how do you pass parameters (e.g., the name of the pset file to work with?) We...
View ArticleSet book file name when opening XML file using Read/Write rules
We are attempting to script the loading of an XML file into FrameMaker binary files and subsequent processing. Our structured appplication read/write rules specify the component names, but FrameMaker...
View ArticleFDK: #define FAPI_*_BEHAVIOR
FDK allows for defining the following symbols: FAPI_4_BEHAVIOR, FAPI_5_BEHAVIOR, FAPI_55_BEHAVIOR and FAPI_6_BEHAVIOR. What FAPI_*_BEHAVIOR shall be defined for FDK12? I found the follwoing...
View ArticleFramescript: search and replace condition name in a bunch of mif files
Hello fellows, I would like to loop through all mif files listed in a book, and search/replace specific condition names with other ones.This can be done in each FM file as follows:...Sub ProcessDoc...
View ArticleOutput function (results to a file) in Extendscript
When I check a script I use the alert to see if the code is working, such as "Current tag is body".Is there a function that outputs alert results to a file? For example, a way to send to a file allof...
View ArticleFinding an element from a text location
Hello again, How do I get to an element from a text location ? As my document is structured I am always in an element, but there does not seem to be a way to get there easily. I tried...
View Articlecopy paste text frame
Hi to all.I am trying to make a very simple script that finds the first text frame that exists in a flow (in this case a secondary flow with only a line of text) ,copy that in the exact same location...
View ArticleScript to resize all tables in a document
cross posted in FrameMaker forum Does anyone know of a script that will resize all tables within a document at once so that the tables fit the width of the text frame?
View ArticleIs there support for the GraphicsFmt object in FrameMaker 11 ExtendScript?
I was reading the FDK documentation for FrameMaker 11 and I see that support has been added for Object formats using FO_GraphicsFmt. Is there support for the GraphicsFmt object in FrameMaker 11...
View ArticleHow do I take an anchored frame and return the paragraph tag it uses?
I need to parse through anchored frames and return the paragraph tag that it is located it. I can't seem to find a property that returns the paragraph tag. Anyone have any ideas?
View ArticleNeed Help With Script Skipping Word Before Variable
I borrowed and modified a skip I found here: http://forums.adobe.com/message/4808804 with code borrowed from elsewhere. I noticed that it seems to run fine, but it skips any word that appears right...
View ArticleRemove Character Format Override From Text Range
This should be simple, but I am wracking my brains trying to figure this out. I simply want to take a text range and remove any character format override (CTRL-I or CTRL-O) and remove the override. I...
View ArticleExtendscript that runs "Apply Master Pages"
Hello Framers, In the extendscipt toolkit data browser, I don't see an option to apply master pages to a document (as in Format-->Page Layout--> Apply Master Pages...). Shouldn't this be some...
View Articleevent-driven extendscript
Guys, I wonder if there is there a way to make a script event-driven, so that it will be triggered, for example, after importing formats from another file? The FM help says that 'Registered' scripts...
View ArticleCan I import data from a database into a FrameMaker document using ExtendScript?
I want to import part information from a database into a structured (XML) FrameMaker document. The document would be an Illustrated Parts Catalog, built by merging the text in the structured document...
View ArticleExtendscript - Book component type - ES bug or doc error?
Hi, (FM 11, Win XP) When you query ComponentType for an FM document book component, you get hexadecimal 0x200 which happens to equal Constants.FV_BK_FILE. However, the documentation says that this...
View ArticleAssociating a condition with a paragraph/char format
Hello fellows, I wonder if there is a way to automatically apply a certain condition to a specific type of a paragraph/character thru an event script. Thank you in advance!
View ArticleHow to get the flags for GetText()?
Hello, The Fm 10 Scripting Guide seems to say that the flags parameter for GetText() is a bitmask, and I should OR constants to get different kinds of text items and so forth. Is this really true or is...
View Article