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

How can I autorun a script that will process an XML file on open?

I am using Frame 11. I have a registered script that looks for event notification Constants.FA_Note_PostOpenXML. When this event fires, the script is supposed to examine the root element (so I only...

View Article


Is Find() dependable or should I use something else?

I'm trying to use Doc.Find() to find paragraphs that have changebars. Is Find() advisable generally or should I spend my time using some other method, like iterating through Pgf objects? I'm also...

View Article


Automating an unstructured text selection into a new DITA document

Hi everyone, Lately I've been thinking that it would come in handy to have a script that would allow me to select/highlight (using a mouse) a few words of text in an unstructured FM document, and then...

View Article

TextLoc works once, then stops working

I have this simple code:  var doc = app.ActiveDoc;var t1 = new TextLoc();var firstPgf = doc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;t1.obj = firstPgf;doc.AddText (t1, "Hello"); When I ran it the...

View Article

Retrieving data from Excel file

Hello, I have an fm file with a list of parameters. I want to read them one by one, and plant their description in the fm file under the name of the parameter. The description is in an excel file. The...

View Article


can i keep original image names when i save a document as html?

Hi,I've a document with references of all documents of book , a reference page that define styles and structure of document. When I save the document as html, it's work fine but the imagenes names is...

View Article

Best way to copy range of paragraphs

I'm getting all the changebars in the files of a book, and copying them out into a separate, single change document. Once I find the Pgf with the changebar, what would be the best way to copy the info...

View Article

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


FM11 hanging/crashing with FrameScript 5

Hi My setup: FM11; Framescript 5.2 (5.2R1p251); Windows 7 FM11 is working fine ... but when l use FrameScript, the script runs OK until the end, then FM hangs for ages.Eventually the FM file reopens...

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

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


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

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


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

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
Browsing all 888 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>