Quantcast
Viewing all articles
Browse latest Browse all 12845

Alert message need to be added?

Hi All,

 

I need  to add alert message of number of unlock items in the following script.

 

#target illustrator

var myDoc = app.activeDocument;

var myPageItems = myDoc.pageItems;

var count = myPageItems.length;

for ( var i = count-1; i >= 0; i-- ) {if ( ! myPageItems[i].locked){ myPageItems[i].selected = true; }

{myPageItems[i].locked = false;{ myPageItems[i].selected = true;}}};

 

 

this script unlock the items, but i need the information of lock items.

 

Any help.

 

Regards,

Vinoth


Viewing all articles
Browse latest Browse all 12845