What I really need to do now is cycle through any extra artboards and add barcodes to each. That’s proving difficult.
Ignore selectobjectsonactiveartboard and fitartboardtoselectedart, and do it the old way -- those commands are way too ugly...
Loop through the artboards, get the artboard rectangle of each, from that calculate where to place the barcode stuff, place it, then set the artboard's artboard rectangle to the expanded area.
I’ve been trying exactly that, but the code won’t work.
tell application "Adobe Illustrator"
tell document 1
set p to 2.01
set artBoardCount to count of artboards
end tell
repeat with eachArtBoardCounter from 1 to artBoardCount
try
set eachArtBoard to eachArtBoardCounter - 1
set p to 2.1
my doFoo(eachArtBoard) — _javascript_ call
set p to 2.13
do shell script ("sleep 1")
set p to 2.6
set bb to artboard rectangle of artboard eachArtBoard — Fails!
etc, etc.
printIllustrator CC 2015
Adobe Illustrator got an error: Can’t get artboard 0. (or 1)
number -1728 p = 2.6
Also tried within 'tell document 1'
on doFoo(theArtboard)
tell application "Adobe Illustrator" to tell document 1
do _javascript_ ("app.activeDocument.artboards.setActiveArtboardIndex(" & theArtboard & ")")
end tell
end doFoo
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: