Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 72601

Script Label

$
0
0

Hi All,

 

For my requirement i want to get a list of all page items with "id" value  in script label.

 

Script Label concept in entirely new for me.

 

 

Below script get the ID value of every page items in the active document.

 

But i dont know how to save all the values [alert(("ID:" + myPgItems) in the script label.

 

 

Trying script:

 

var myDoc = app.activeDocument

 

var myPageItems = myDoc.allPageItems

 

alert(myPageItems.length)

 

for(i=0; i<myPageItems.length; i++)

{

    var myPgItems = myPageItems[i].id

 

    alert("ID: " + myPgItems)

 

    }

 

 

Please find the attachment for more information

 

Screen Shot 2013-02-05 at 12.12.28 PM.png

 

 

Kindly give solution as soon.

 

 

Thanks in advance

BEGINNER


Viewing all articles
Browse latest Browse all 72601

Trending Articles



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