🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1864

Re: master pages and grep in CS3

#1864
From: andrea_laue
Date: Tue, 20 Jan 2009 22:03
16 lines
1843 bytes
Hi Dave,

Thanks for your quick reply.

Actually, I think I've figured out the problem. And it isn't exactly as I posted it...

The script cycles through each paragraph in the active document for which nested styles are defined. It returns an alert when the search string (a nested style delimiter) is *not* found in a given paragraph. I'm getting this alert for paragraphs in the master spread.

Essentially, since my Grep preferences say don't search master spreads, then the search operation will never find the search string in the master spread paragraphs, right? So I'll get the alert every time. Does this seem like the proper interpretation of what's going on?

So, perhaps what I need to do is test that the current paragraph is not in a master spread before triggering the alert. Or, better yet, test at the beginning whether the parent of a given story is a master spread before I even bother to search it.

Looking at the object model, it's not immediately clear how to do this. Can one test if the parent of a given story is a master spread? (I see from previous posts that this would likely happen via the frames and pages axes, but I'm not able to make it happen...)

Thanks again,
Andrea
Technical Details
Message-ID: <59b790d6.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!news.glorb.com!newshub.sdsu.edu!webcrossing
References: <59b790d6.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,1595a57f9b974973
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: andrea_laue@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!news.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: master pages and grep in CS3
Message-ID: <59b790d6.1@webcrossing.la2eafNXanI>
Date: Tue, 20 Jan 2009 14:03:19 -0800
References: <59b790d6.-1@webcrossing.la2eafNXanI>
Lines: 29
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit