Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
INDESIGN - Reference to all boxes in document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

INDESIGN - Reference to all boxes in document



I am trying to name all the boxes on each page of sequentially.

For instance 2 pages 28 boxes on each.
Number sequence
1 (top left page 1)
56 (bottom right page 2).

I guess I am at a loss on how to reference all the boxes in the
document
and number them as stated above.

The following script will number 1 to 28 on each page

on revbox(theboxes)
set theboxes to reverse of theboxes
return theboxes
end revbox
tell application "InDesign CS"
tell document 1
repeat with i from 1 to count of pages
tell page i
set theboxes to (every item of all page items where class of it =
rectangle and label is "EPS")
set theboxes to revbox(theboxes) of me
repeat with i from 1 to count of theboxes
set label of item i of theboxes to "EPS" & "-" & i as string
end repeat
end tell
end repeat
end tell
end tell

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.