-
1. Re: How to place multiple images automatically into placed graphic boxes?
[Ariel] Feb 26, 2012 2:03 PM (in response to erblo007)Is the script creating the frames? If so, just assign each frame a
variable, or make them all into an array. Then use something like:
myFrame.place("aFile");
If the script is not creating the frame, then are they live frames on
the page, or are they actually on a master page?
If they're on master spreads, you'll have to release them to the page
you want. (I think it's myMasterFrame.override(myPage) where myPage is
the live page you want to detach them on, but you'll have to double
check that.)
But presuming they're regular detached frames on a page, if you want
your script to figure out which is the first and which is the second you
can either use script labels in the UI and then search for the script
label, or else you'll have to write a function that will get all
rectangles on the page (myPage.rectangles.everyItem().getElements() and
either do a clever javascript sort, or write a straightforward function
to sort them by height and x-pos.
Hope that sheds some light on the task ahead!
Ariel

