Quantcast
Channel: Adobe Community : All Content - FrameMaker Scripting
Browsing all 888 articles
Browse latest View live

Infinite loop with pgf.ObjectValid

Why would this result in an infinite loop? I thought that wehn it got to the last Pgf object it should become invalid and stop.     var doc = app.ActiveDoc;    var pgf =...

View Article


How to access a table for changes

I'm iterating through the Pgf objects in a flow, and for each one I look for table anchors. I find the table anchor, then what do I do to access its Tbl object and do things with it? I'm just trying to...

View Article


Code to Save As PDF

Hi, Does anyone have any code for saving a document as PDF? I don't need an entire script, just a chunk of code that shows the save parameters. Thanks in advance. --Rick [moved to FM scripting forum by...

View Article

How to insert a new paragraph?

I want to insert a paragraph with something like a line, to separate hunks of text I am pasting into a document. I see no obvious way to do this. I see no AddPgf() function, for example. And no...

View Article

How to find last Pgf of pasted paragraphs?

I'm pasting several Pgf objects at once into a file (a changes file of sections containing changebars), in the main text flow. I want a divider line to go at the end of each pasted section, so I try to...

View Article


Applying a condition to a paragraph

Greetings, I want to iterate through all paragraphs in a document and for each paragraph with the "comment" style, I want to apply an existing condition called "Comment" (as per p. 126 of the FDK...

View Article

Accessing file system

My script needs a Framemaker template file in creating a new file. I've made it work by hard-coding the path to the template in the script: sFilename = "C:\\Users\\gisteppen\\Desktop\\fm change...

View Article

600-page Fm file causes script to fail

My script goes through all files in a book to find changebars. It works fine except when it tries to process two very large FrameMaker files, each one being almost 600 pages long. When I try to run one...

View Article


How to strip attribute Id values in a chapter by calling FDK APIs for...

HI I like to empty the Id values in a chapter by FDK APIs,how can I do that? Thanks.

View Article


Is it possible to call a function when a specific event happens?

Hi everyone, I would like to pop up an alert when a user deletes a named destination marker. I thought this would be a no-brainer, but I'm having trouble finding examples of scripts that handle events....

View Article

Looking for a script that will save as v11

I need to save a book and all its files as version 11 (from version 12)

View Article

ANN: New ExtendScript samples for beginners

Hi, I've worked up a set of samples designed to help beginners get started with ExtendScript. This is mainly as a public service, as I felt there was a lack of simple, working samples out there to help...

View Article

XSLT transformation for Single XML Output

I want to save a book to a single XML document. Is it correct that I can do this by adding an xslt to merge the standard framemaker entity type output ? Can I easily reconfigure the standard Save As...

View Article


Find Replace from Textfile with regex

Hello. I'm wondering if anyone knows about an existing script that does a find/replace by list like the script "FindChangeByList.jsx" that comes with every InDesign installation.This consists of tow...

View Article

New Extendscript Guides for FM 11&12 available

The updated ESTK scripting guides are now available online: FM11http://help.adobe.com/en_US/FrameMaker/11.0/Scripting/index.html (What's New at http://adobe.ly/1fHm1rP)...

View Article


Create an ExtendScript to create PDFs...object help

Hi Adobe Framer Community- Does anyone know which FM Object the Constants.FV_SaveFmtBookWithFm property value constant is a property of? I think it's a property of the Doc object, but I'm having...

View Article

apply a conditional tag to all occurences of a pragraph

Is it possible to write an extend script to apply a conditional tag  to all occurences of a pragraph tag in a document? Are there any samples of a script like this

View Article


Is there a maker.ini command to change extendscript default startup directory?

Hi All,  Rather than use <framemaker install dir>\startup, I want to use c:\deploy - for storing all my required startup extendscripts and dlls. Can I do this, if so, how?  Thanks! Tracey

View Article

Error while loading an XML document using a structured application

Hi, I try to load an XML document using a structured application defined in the default structapps.fm My code is shown down, extracted from the FDK API code sample. Problem, I always have the same...

View Article

my palette window hides behind main window

For awhile, as I developed a script, the "tools palette" window that it creates stayed in front of the main doc window. Somehow it changed behavior, and how hides behind the main doc window whenever I...

View Article
Browsing all 888 articles
Browse latest View live
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>