Quantcast
Channel: Adobe Community : All Content - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 888

Handling element auto insertions

$
0
0

I seem to be digging deep into areas of FrameMaker's ExtendScript Object Model that don't get much attention.

 

In an EDD it is possible to define the auto-insertions that happen when you add a new element to a structured document. The auto insertions can be InsertChild or InsertNestedChild. I need to handle these insertions dynamically according to element context. Unfortunately this seems to be impossible with ExtendScript.

 

In an ElementDef there are two relevant properties AlsoInsert and AlsoInserts. The first is an array of Stings and the second a Typed Val. It is not clear how these should work together to match the possibilities of the EDD structure. Has anyone made this work? I had a look at the FDK documentation but it's not very helpful.

 

The FDK and ExtendScript documents seem to be giving different information which is unhelpful. The FDK reference does not include a definition for an equivalent to AlsoInserts.

 

Any ideas greatefully received.

Ian

 

 


Viewing all articles
Browse latest Browse all 888

Latest Images

Trending Articles



Latest Images

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