Re: Error while loading an XML document using a structured application
Hi Russ, Hi Rick, Hi Jang, Thanks for taking time on my problem. You were right : filename was a File object, not a string ... that was the sole problem. Thanks for your answer, it now works.
View Articlemy palette window hides behind main window
For awhile, as I developed a script, the "tools palette" window that it creates stayed in front of the main doc window. Somehow it changed behavior, and how hides behind the main doc window whenever I...
View ArticleGetting rid of a notification
I have tried notification and decided there are too many problems with it. But no matter what I do now, the Console keeps showing the same notification error with every file I open. I had a...
View ArticleRe: Getting rid of a notification
1. Go to File->Script->Catalog. 2. Select the Registered tab. It will show list of scripts which has been registered. 3. Now select the script which you want to unregister and...
View ArticleRe: Getting rid of a notification
Thanx. That worked. I always build menus with commands. So I never really experimented with all the options in the Scripts Catalog. It takes too much screen real estate, as I am already short of...
View ArticleHow can I find out if a structured doc is valid?
Hi all, I need to establish the validity of a Doc before my script transforms it to XML and applies an XSLT in the process. I have searched the FM12 scripting guide but cannot find any Doc property or...
View ArticleRe: How can I find out if a structured doc is valid?
Some more digging showed the solution, although I do feel there should be an easier way: The highest level element of the main flow may show a red plus in the Structure View but this is not reflected...
View ArticleRe: How can I find out if a structured doc is valid?
Hi Jang, This is the only way I've found do to it; that is, step through the entire tree and look at elements individually. It may just be that the granular nature of the API expects us to write...
View ArticleRe: How can I find out if a structured doc is valid?
Hi Russ, What strikes me is that apparently the FM code already contains this routine - as visible in the Structure View - but it was not deemed important enough to share with scripters via an...
View ArticlePatternstream and Framemaker Publishing Server 12
What's the best way to make sure an FDK (Patternstream in our case) fires up with every job on Framemaker Server 12, and how do you pass parameters (e.g., the name of the pset file to work with?) We...
View ArticleRe: Patternstream and Framemaker Publishing Server 12
FrameScript has the ability to run an "Initial Script" whenever you start FrameMaker. Patternstream has some integration with FrameScript so you may be able to pass parameters to Patternstream once...
View ArticleRe: Patternstream and Framemaker Publishing Server 12
I have done a project where my ExtendScript was initiated from a FrameScript. In the other direction, there are several API Clients I use that can be called from ExtendScript, using the CallClient...
View ArticleSet book file name when opening XML file using Read/Write rules
We are attempting to script the loading of an XML file into FrameMaker binary files and subsequent processing. Our structured appplication read/write rules specify the component names, but FrameMaker...
View ArticleFDK: #define FAPI_*_BEHAVIOR
FDK allows for defining the following symbols: FAPI_4_BEHAVIOR, FAPI_5_BEHAVIOR, FAPI_55_BEHAVIOR and FAPI_6_BEHAVIOR. What FAPI_*_BEHAVIOR shall be defined for FDK12? I found the follwoing...
View ArticleFramescript: search and replace condition name in a bunch of mif files
Hello fellows, I would like to loop through all mif files listed in a book, and search/replace specific condition names with other ones.This can be done in each FM file as follows:...Sub ProcessDoc...
View ArticleRe: FDK: #define FAPI_*_BEHAVIOR
Zdenek, What are you trying to do? Are you trying to use FDK 4 code with the FDK 12 or something like that? If you are just trying to write an FDK12 plugin, you don't need to do anything. I didn't...
View ArticleRe: FDK: #define FAPI_*_BEHAVIOR
Hello Russ, thank you very much for your response. I completely understand what you have written. I do not want to define these symbols with the aim to achieve the backward compatibility. The...
View ArticleRe: FDK: #define FAPI_*_BEHAVIOR
Hi Zdenek, Interesting observation. I'm not sure what the reason is. I think that anymore, either a bug in the software or an error in the documentation is par for the course. I have only ever used a...
View ArticleRe: Framescript: search and replace condition name in a bunch of mif files
There is no difference in the code. FM binary and mif are just the formats in which the files are stored on the disk. When the document is loaded into FM, the internal representation is what your...
View Article