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

How to get the title of a table with FDK?

How to get the title of a table with FDK ad C++?

View Article


Image may be NSFW.
Clik here to view.

Bizzare problem while handling open documents.

Hi. I am facing a bizarre problem when I retrieve the open documents with the following code: for (F_ObjHandleT docId = F_ApiGetId(FV_SessionId, FV_SessionId, FP_FirstOpenDoc); docId; docId =...

View Article


Cannot get active document when user clicks the document in Adobe FM 2015.

I am facing the following problem: I have a timer in my application that hits repeatedly after 2 seconds to get the active document name (if there is any). If the user selects some text (on mouse click...

View Article

Image may be NSFW.
Clik here to view.

Getting the name of a new document returns empty string.

When I try to get the name of a new document name an empty string is returned. Why this is happening? Is it possible to get the "Untitled1.fm" that I see in Adobe FM 2015 application? This is the FDK...

View Article

Image may be NSFW.
Clik here to view.

Apply Style to Table Cell Text using Extendscript CC

Hello,I have the following code. I'm attempting to parse a document and search for specific keywords based on regex. This part is working. I then get the text range for those keywords and highlight the...

View Article


Image may be NSFW.
Clik here to view.

AddText does not add

You know, my favorite errors ar typos... but I have not found any in my codet. So I hope You see my error.I have settings stored in paragraphs of a reference page and want to replace them from contents...

View Article

How to check if API can connect to FM?

Hi in my FMClient I have the following method for checking if API is alive: bool FMClient::IsConnected() { return F_ApiAlive() > 0; } After I connect to FM with F_ApiStartUp the IsConnected method...

View Article

Image may be NSFW.
Clik here to view.

How to Apply Conversion Table to FM file.

I have a conversion table generated for a group of files I am trying to structure. I want to be able to apply the conversion table with Extendscript. The script I have doesn't save any converted file....

View Article


Image may be NSFW.
Clik here to view.

import formats and edd in subfolders

Hello everyone.I'm newbie in ExtendScript FrameMaker, and it seems a great tool!My problem is that I have a folder in which I have full subfolders.In this subfolders, I have structured ".fm" files in...

View Article


How to get the current line or the whole paragraph?

Hi. I am facing the following problem: Suppose that I have the following paragraphs in FrameMaker: This is a sentence. And   (simple line end)also there this sentence. (paragraph end) This is a...

View Article

Image may be NSFW.
Clik here to view.

Rename ElementDef

In a structured document, is there a way to remane an ElementDef. I want to search for some specific names and rename them.Example code:var doc = app.ActiveDoc var elem =...

View Article

How to re-activate body page after working on reference page?

Dear friends,Yet now I can not reproduce the following situation in a short test script:A document is opened and the script looks for existence of a Reference page "FM-calc"If found, skip to step 4If...

View Article

Stuck with Notify / registered script

Dear friends,A Notify function is invoked even before I have explicitly started the script. Well this seems to be purpose of registering a script, but...The Notify function is executed before the...

View Article


Are global arrays interconnected ?

Dear friendsI am more than puzzled about the following This is the global definition of two arrays:var gasLocations      = [];                       // filled from template or current document  var...

View Article

Delete an attribute from an element

Hi Scripters, I know from Russ Ward's samples how to delete an attribute value. But how do I delete the attribute itself from the element? The attribute is undefined in the document's EDD, that is, it...

View Article


Delete an attribute

Hi Scripters, I know from Russ Ward's samples how to delete an attribute value. But how do I delete the attribute itself from the element? The attribute is undefined in the document's EDD, that is, it...

View Article

Regular expression problem

Dear friends,In my script i have some sections which test the content of an edit field before it is processed further.Things like the following work perfectly:var re_Def = /#[A-Za-z][A-Za-z0-9_]+/;...

View Article


Preserve image references when saving as xml

I am trying to save some documents in XML format, but framemaker is creating .mif files for all the images I have referenced in the file, and I want it to continue to reference the original files, or...

View Article

Image may be NSFW.
Clik here to view.

Arrays are objects - really?

Dear experts and gurus,The more I read the more I am confused. Every now and then the talk is "JS Arrays are objects and hence they are passed by reference". However, simple experiments leave my...

View Article

Save as Docbook XML

I am trying to save a structured FM file as DocBook xml, But it is not giving me DocBook output, just regular XML. Here is my code, my best guess is line 13 is the issue. function saveAsDBXML (doc,...

View Article
Browsing all 888 articles
Browse latest View live


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