Skip navigation
Currently Being Moderated

Boolean Condition Expressions

Apr 11, 2013 4:15 AM

Unlike Condition Formats, Paragraphs, etc., Boolean Condition Expressions are apparently not stored in a linked list. In ExtendScript, you can get a list of the Expression names with this:

 

var doc = app.ActiveDoc;
var exprCat = doc.GetBuildExprCatalog();

 

This gives you an array of strings containing the Expression names. I am not sure what the FrameScript or FDK equivalents are, but I assume there is a way to do this.

 

Once you have the list, you can get each definition by doing this:

 

for (var i = 0; i < exprCat.length; i += 1) {
    var expr = doc.GetBuildExpr (exprCat[i]);
    Console ("Name: " + exprCat[i] + " Definition: " + expr); 
}

 

I hope this will helpful to someone in the future. Please let me know if you have any questions or comments. Thank you very much.

 

Rick

 

More Like This

  • Retrieving data ...

Bookmarked By (0)