Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

Correct my script please!

$
0
0

Hi everyone

 

Could someone please help me to correct my script:

 

var docs = app.documents;

for (var i = docs.length-1; i >= 0; i--) 

        {

            var
myTarget = app.target[0]; 

if(myTarget instanceof InsertionPoint)

{myTarget.insertionPoints[0].underline=false;

                                            }

else if(myTarget instanceof Cell)

                                {for(i=0; i<myTarget.cells.length; i++)

{myTarget.cells[i].texts[0].select();

                                        app.selection[0].underline=false;

                                            }

                                        }

else if(myTarget instanceof Table)

                                {for(i=0; i<myTarget.cells.length; i++)

{myTarget.cells[i].texts[0].select();

app.selection[0].underline=false;

                                            }

              }

else{myTarget.underline=false;

                                }

                            }

 

Aim to clear the underline which in the inserpoint, cells,
tables, text.

 

 

Thanks

 

Regard

 

Teetan


Viewing all articles
Browse latest Browse all 15932

Trending Articles



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