Article View: adobe.scripting.indesign
Article #15962Re: What's the best way?
From: Robert_Kyle
Date: Sat, 25 Oct 2003 02:06
Date: Sat, 25 Oct 2003 02:06
9 lines
1768 bytes
1768 bytes
Ole: I'll blame Brand Q for my fuzzy thinking. Over there, every picture box has an image, but the invisible ones have a bounds of {0,0,0,0}.
The immediate task is to place filler ads on newspaper pages. We have a graphic frame labeled "filler ad" that's placed on the page and stretched to fill whatever space is available. The user might place more than one of these items and might run the script more than once.
So I'm getting a list of all of the rectangles whose label is "filler ad" and looping through that list to measure each frame and find an ad on the database that will fit. But if a particular box already contains an ad, I don't want to re-fill it.
Since I'm looping through the list of boxes, it's not really a problem to find out if each one contains a page item, which apparently turns out to be a PostScript picture. If that's a reliable method, that is.
I suppose the most elegant solution would be to start with something like "get object reference of every page item labeled "filler ad" which does not contain a link."
Technical Details
Message-ID:
<2ccdf3ef.5@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!skynet.be!skynet.be!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccdf3ef.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,74526e057849107d X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-10-24 19:07:39 PST From: Robert_Kyle@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!skynet.be!skynet.be!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: What's the best way? Message-ID: <2ccdf3ef.5@webx.la2eafNXanI> Date: Fri, 24 Oct 2003 19:06:21 -0700 References: <2ccdf3ef.-1@webx.la2eafNXanI> Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit