Re: event-driven extendscript
1. You have to make sure that your setupNotifications (); call is at the top of the script outside of any functions, etc. Otherwise, it won't be called when you run the script. 4. I am using FrameMaker...
View ArticleRe: event-driven extendscript
Thank you, Rick! I wonder if FM 11 uses different APIs. My best regards,Roman
View ArticleRe: event-driven extendscript
Hi Rick, Just for a test, I tried using FA_Note_PostGenerate in the command code checking script. The result I got after updating a book was 0. This looks suspicious to me. What number do you get in...
View ArticleRe: event-driven extendscript
Zero is probably correct for this event because the parameter isn't needed. When an event is specific like this one, you usually won't need to test the iparam or sparam parameters. For general events...
View ArticleRe: event-driven extendscript
Hi Rick, Thank you for your response!Did you have a chance to look into the FA_Note_PostFunction issue in FM10? I see that this event is mentioned in the FM10 FDK Guide, so it should be supported....
View ArticleRe: Free and For-sale Scripts
I was hoping to see that too. Closest thing I could find is the general FM Add-On/Tool list at leximation: http://leximation.com/toolsearch
View ArticleCan I import data from a database into a FrameMaker document using ExtendScript?
I want to import part information from a database into a structured (XML) FrameMaker document. The document would be an Illustrated Parts Catalog, built by merging the text in the structured document...
View ArticleRe: Can I import data from a database into a FrameMaker document using...
There is no direct way to connect to a database with FrameMaker ExtendScript. It is possible to write C++ code to interact with scripts, so you could write some kind of connector in C++ that would work...
View ArticleRe: Can I import data from a database into a FrameMaker document using...
Thanks, Rick. I should mention that this would not be a "one-and-done" import of data. Specifically, each time we publish the IPC, our current product's publishing engine merges the data from the...
View ArticleRe: Can I import data from a database into a FrameMaker document using...
Absolutely. You would either have to specifically run the script whenever the data changes, or you could have the script automatically run when you open a particular document.
View ArticleRe: Can I import data from a database into a FrameMaker document using...
Great. Thanks, Rick. --Wayne
View ArticleRe: Can I import data from a database into a FrameMaker document using...
If you are interested in doing a no-cost, no-pressure consultation about this project, please let me know. We can meet via GoToMeeting and I can give you some ideas for putting it all together. Thanks....
View ArticleRe: Can I import data from a database into a FrameMaker document using...
Wayne, Another route that you might want to consider is Datazone's Miramo Personal Edition. This tool was designed just for this type of operation. See:...
View ArticleExtendscript - Book component type - ES bug or doc error?
Hi, (FM 11, Win XP) When you query ComponentType for an FM document book component, you get hexadecimal 0x200 which happens to equal Constants.FV_BK_FILE. However, the documentation says that this...
View ArticleRe: Extendscript - Book component type - ES bug or doc error?
Hi Russ, same issue here (FM 11, Win7). I'm not sure, but in my opinion it's an error in the documentation. The values for ComponentType should be: Constants.FV_BK_FOLDER (0x2):...
View ArticleAssociating a condition with a paragraph/char format
Hello fellows, I wonder if there is a way to automatically apply a certain condition to a specific type of a paragraph/character thru an event script. Thank you in advance!
View ArticleRe: Associating a condition with a paragraph/char format
Your best bet is to follow the advice I posted on my blog: http://frameautomation.com/run-a-script-in-response-to-a-command/ Install the "test" event script that will display an integer whenever you...
View ArticleRe: Associating a condition with a paragraph/char format
Hi Rick, Thank you very much for your response! Unfortunately, when applying a Pgf format, I am getting a well-known error - [object InvalidObject].Please, advise! My best regards,Roman
View ArticleRe: Associating a condition with a paragraph/char format
Hi Roman, OK, here is a way you might be able to work around this. It is going to take more code, but it should work. Remember that with many events, there is a "Pre" event that corresponds to the...
View ArticleRe: Associating a condition with a paragraph/char format
Hi Rick, Thank you for the suggestion! I don't understand how I can make sure that the condition is applied to a specific Pgf format when using this method. Please, clarify. Thank you!Roman
View Article