Quantcast
Channel: Adobe Community: Message List - FrameMaker Scripting
Browsing all 3715 articles
Browse latest View live

Re: Finding an element from a text location

Hi Tracey, It turned out to be really simple: you can translate between text locations and element locations using two methods (one for each direction). var oTRange = oDoc.TextSelection;var oTLoc =...

View Article


Re: Output function (results to a file) in Extendscript

Here's the code I have, but the Extendscript debugger says oFile.open is not a function, is this only for javascript? Thanks,  Keith function processDoc (doc) {         //Process the paragraphs and...

View Article


Re: Output function (results to a file) in Extendscript

OK, was in a hurry, see that the new is a resreved word, this should be closer, there are no errors but no text output, I'll keep trying...  //Process the paragraphs and tables in the main document...

View Article

Re: Output function (results to a file) in Extendscript

Keith, There are a couple of problems with your script. 1. You need to 'escape' the backslash in strings. So the code for creating your file should look like this: var tagsFile = new File...

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


Re: Create an ExtendScript to create PDFs...object help

Hi Diana, This constant works with the FileType property when you save a book. I don't know any of the details about how it works. What exactly do you want to do when the notification is received? If...

View Article

Re: Create an ExtendScript to create PDFs...object help

Hi Rick, Thanks very much! It sounds like I should try adding the Constants.FA_Note_PreFileType to the switch in my setupNotifications function. I'll try playing around with that first and see if I can...

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


Re: apply a conditional tag to all occurences of a pragraph

You can also accomplish this using only the standard Find/Change function. 1. USe the Copy Special to load the required Conditional Text Setting already applied somewhere. 2. Use Find to look for the...

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

Re: Applying a condition to a paragraph

Hello to all, I know this is an old thread, but I'm just now getting around to trying this task myself and I am unsuccessful as you were. My script is very simple... just attempts to apply a single...

View Article

Re: apply a conditional tag to all occurences of a pragraph

Meera, I thought this sounded like a great idea for a sample script. I thought I would write one and add it to my free samples collection on my website, but it turns out that I just cannot get it to...

View Article

Re: Applying a condition to a paragraph

Hi Russ, This may be more of a FrameMaker 10 ExtendScript issue. I just mocked up a sample document of almost 2000 pages and ran a modified version of Anchal's code. It took awhile, but it worked in...

View Article


Re: Free and For-sale Scripts

I thought I'd ressurect this thread, as I'm looking for a script that will automate this workflow: 1. open a FrameMaker 10 book file (MS Windows 7)2. save it as a PDF to a \PDFs folder3. close it...

View Article

Re: Free and For-sale Scripts

Hi Paul, I don't have anything ready-made, but I could write something for you. Contact me offlist and I will give you a quote: rick at frameexpert dot com. Thank you very much. -Rick

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

Re: Error while loading an XML document using a structured application

Hi, My guess is that the script can't find the file you want to open, not that it can't find structapps.fm. One question... what is this? var filename = myLastFile.openDlg("Choose XML file ...",...

View Article


Re: Error while loading an XML document using a structured application

Postscript... I realize now that openDlg() might be some core javascript method that I'm not familiar with, although I can't find much about it. In any case, see what filename equals afterwards. If it...

View Article

Re: Error while loading an XML document using a structured application

Hi Pierre, The openDlg method returns an ExtendScript File object, not a string. When you do this: var fileObj = Open(filename, params, retParm); filename is a File object instead of a string. You need...

View Article

Re: Error while loading an XML document using a structured application

Pierre, Depending on the object "myLastFile", the method openDlg might not even exist (if the myLastFile object is not a File object, for instance). And I do not see any need for the myLastFile anyhow,...

View Article
Browsing all 3715 articles
Browse latest View live


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