Quantcast
Channel: Adobe Community: Message List - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 3715

Re: Has the ExtendScript documentation been updated for FrameMaker 11?

$
0
0

feline,

 

The scripting capabilities of FM are remarkable. It's possible that that you've found an instance where something is not easily done (or perhaps not possible), but I can assure you that just about anything else is possible. So, I'd hate for you to get a bad taste about FM scripting just due to this one issue.

 

Jang,

 

What client are you trying to invoke? Is it the Structure Generator on a single document? The documentation for structuring a single document has been wrong forever, so it will not work as currently advertised. If you have the right syntax, though, it works great. Here's an FDK code snippet for a document conversion that should show what you need, in case this was your issue:

 

F_Sprintf(tempUChar, "INPUTDOCID %d", docId);

F_ApiCallClient("Structure Generator", (StringT)tempUChar);

 

F_Sprintf(tempUChar, "RULEDOCID %d", convTableId);

F_ApiCallClient("Structure Generator", (StringT)tempUChar);

 

F_Sprintf(tempUChar, "OUTPUTDOCNAME %s", tempPath);

F_ApiCallClient("Structure Generator", (StringT)tempUChar);

     

F_ApiCallClient("Structure Generator", "StructureDoc");

 

I believe the error in the manual is that is says to call "GenerateDoc" at the end, which is wrong and does nothing.

 

I remember in the past working with someone trying to structure a book and I'm not sure if we ever got that working. Maybe that was you... sorry if I forgot

 

Russ

 

Message was edited by: Russ Ward


Viewing all articles
Browse latest Browse all 3715

Trending Articles



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