Re: Three InDesign scripting questions
Re: Three InDesign scripting questions
- Subject: Re: Three InDesign scripting questions
- From: Shane Stanley <email@hidden>
- Date: Thu, 02 Mar 2006 08:57:11 +1100
- Thread-topic: Three InDesign scripting questions
On 2/3/06 6:53 AM, "Stockly, Ed" <email@hidden> wrote:
> Thanks Shane that's helpful, but here's the thing. We're archiving articles
> that are InDesign documents. An article includes the text of the story, all
> graphics and photos and all captions, headlines and bylines. We also need a
> list of each and every page all these parts of the article falls on.
>
> Here are a few issues: Pages often include pictures and text from multiple
> articles and ads which aren't part of any article;
>
So do you want to record the page of every item on a page? If so, work
through the document (probably by spread) using the "all page items"
collection.
> often parts of the picture boxes (including the top, left corners) are outside
> the page area;
>
As long as some part of them is on a page, they are considered as being on
that page.
> articles usually jump from page to page to page;
>
For stories, you'll need to get the "parent text frames" of the story, and
loop through them getting the pages they fall on.
> in some cases an single text frame or picture box may span a two-page spread.
>
Page items that straddle the gutter are regarded as belonging to the page
that contains the centre of them. If necessary, you'll have to get the
bounds to see if a frame encroaches upon a second page.
> In Quark I did this with a script that worked flawlessly.
>
And now you can do it in InDesign. You just have to approach it a bit
differently. The good news is that you can also do lots olf other things you
couldn't do flawlessly in Quark.
> Until we sort this out we have someone physically flipping through pages of
> the magazine, and typing page numbers into a dialog. Yuk!
>
Yuk indeed.
--
Shane Stanley <email@hidden>
AppleScript Pro Sessions NJ May 06 <http://www.scriptingmatters.com/aspro>
_______________________________________________
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