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

Re: How can I catch a keyboard input and return another character to Framemaker?

A working script for the catch and replace issue:Notification(Constants.FA_Note_PreFunction); function Notify(note, object, sparam, iparam) {switch (note) {    case Constants.FA_Note_PreFunction:...

View Article


How to write stuff to the console

Hello all, I know I have seen the method for writing some message to the FM console somewhere, but searching the Scripting Guide for the word 'console' does not take me to that info. Can anyone tell me...

View Article


Re: How to write stuff to the console

Hi Jang, I don't know the answer offhand, but you can write to the JavaScript Console using  $.writeln("Message to JavaScript Console"); This is useful for debugging. If I can find the command to write...

View Article

Re: How to write stuff to the console

Jang, You can use the function  for the writing something to the FM console. It  goes like this. Console(“String”) Vikash

View Article

Re: How to write stuff to the console

Thanks, Vikash. I thought it was simple, and it turns out to be. The only remaining question is 'Why was this not described anywhere in the scripting guides?' Kind regards Jang

View Article


How do you rename a component file (in a book) from the FDK?

...and upate all the links?

View Article

Re: How do you rename a component file (in a book) from the FDK?

Good question. There is no function for it, AFAIK. There is an fcode: #define KBD_BOOKRENAMEFILE0x30C ...and F_ApiNotify() responds to a rename action with that code, but I wouldn't know how to...

View Article

How to get selected images?

Hi all,can anyone help with getting a list of selected images?E.g., to get selected tables I usedoc.GetTextForRange(doc.TextSelection, Constants.FTI_TblAnchor) Thanks in advance!

View Article


Re: How to get selected images?

If you want the anchored frames in a range of selected text, you would use var textList = doc.GetTextForRange(doc.TextSelection, Constants.FTI_FrameAnchor); If you want to get graphics that are...

View Article


Edit Script opens Notepad, not ESTK ?

In the documentation for FM10 and FM11 it says that clicking the Edit button in the Script Library panel opens the script in the ESTK editor. Not on my machine: it opens in NotePad instead. Is there a...

View Article

Re: Edit Script opens Notepad, not ESTK ?

Hi Jang, You may have to change the file association in Windows. What do the icons for your .jsx files look like in Windows? Rick

View Article

Re: Edit Script opens Notepad, not ESTK ?

Hi Rick, I did that and made sure the JSX file opens in ESTK when opening it from Windows. But it does not change the behavior in FM. There must be some config setting somewhere. Thanks Jang

View Article

Re: How to get selected images?

Thanks for the answer. The main goal is to get to the text in the image description. Can you say, what way is better for this purpose?

View Article


Strange behavior of breakpoints

Hello fellow scripters, I have a problem with the behavior of breakpoints in the ESTK. If I set breakpoints inside an if / else construct and start the script, the ESTK automatically changes those...

View Article

Re: How to get selected images?

You will have to explain how things are set up, or maybe post a screenshot. I don't know what you mean by "text in the image description." Thanks. Rick

View Article


Image may be NSFW.
Clik here to view.

Re: How to get selected images?

Suppose you have a document and have a picture in it. Under the picture there's a hint/title/description "Picure 2.3. A snow falling in the UK."As I found out, this text can be obtained trough...

View Article

Calling one script from another

InDesign has a nice mechanism for calling one script from another, so code can be made modular. What about FrameMaker ExtendScript? What methods are people using to call one script from another? Thanks...

View Article


Re: Calling one script from another

Hi Rick, I write my scripts such that they always have the entire code in a function call, Basically, the only piece of code outside the main function call is calling that main function (so that I can...

View Article

Import method does not work

Hi there, Does anyone have experience in using the Doc.Import method to pull another FM file in via a script? I have tried all settings but Frame does not recognize the file type, even though it is a...

View Article

Re: Import method does not work

Never mind. The error was elsewhere. Why can't FM give more elaborate information about all kinds of methods ? Some error messages might be useful, e.g. when saving a file with a different extension...

View Article
Browsing all 3715 articles
Browse latest View live


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