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

Getting and setting attribute values [ExtendScript]

$
0
0

Hi colleagues,

 

I got some code to get attribut values but have a hard time setting the value. The function SetAttributes() which I would expect seemingly does not exist.

 

Getting an attribute value is similar to this:

 

lvElem = pvDoc.ElementSelection.beg.child;

lvAttrs = lvElem.GetAttributes();

for(j=0; j<lvAttrs.len; j++) {

  Console(j + ': ' + lvAttrs[j].name + '="' + lvAttrs[j].values[0] + '"');

}

 

But how does setting an attribute value work?

 

Thanks,

 

- Michael


Viewing all articles
Browse latest Browse all 888

Trending Articles



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