[JS][ID5] Get allGraphics except those within tables


the following script iterate on graphic document:

 

var mydoc = app.activedocument; var myimages = mydoc.allgraphics;   (i=0; i<myimages.length; i++)

 

could there iterating on graphics except placed within tables?

 

regards, sjoerd

sjoerd

 

this should helpful, although can see pitfalls

 

var mydoc = app.activedocument, myimages=mydoc.splineitems, v=myimages.length; while (v--) if (myimages[v].parent.parent.constructor.name != "cell") myimages[v].fillcolor="c=0 m=0 y=100 k=0" 

 

trevor



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support