Quantcast
Channel: Adobe Community : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 238792

How to move a pageItem is in overset

$
0
0

Hi All,

     The below code is execute proberly when it is not in overset. But if it is in overset it throws error.

 

MyXMLElement.select();

app.menuActions.itemByID(78629).invoke();                    //Go to Item

var grp = app.selection[0].parentTextFrames[0];

grp.select();

 

if(grp.parent.constructor.name != "Character"){     //to avoid anchor item

     while(grp.parent.constructor.name != "Page"){

          grp = grp.parent;

     }

 

     grp.move(app.activeDocument.pages[-1]);     //move last page

}

 

 

"grp.select()" throws error. How can I move the group item to last page.

 

 

Thanks in Advance,

Mahesh


Viewing all articles
Browse latest Browse all 238792

Trending Articles



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