🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1367

Re: Using Grep to find text pattern, get found text, and get page number found on

#1367
From: Ric_Miller
Date: Thu, 12 Feb 2009 01:44
44 lines
2976 bytes
Hi Dave,

OK, so I tried all of these variations and got various errors:

t.Item(1).InsertionPoints(0).ParentTextFrames(0)
t.Item(1).ParentTextFrames(0)
t.InsertionPoints(0).ParentTextFrames(0).item(1)
t.ParentTextFrames(0).item(1)

I would think that one of the first two would work since they are both  
text and the object browser shows ParentTextFrame as a property of text.

What am I doing wrong.

Thanks,
Ric

Quoting Dave Saunders <member@adobeforums.com>:

A new message was posted by Dave Saunders in

INDESIGN SCRIPTING --
   Using Grep to find text pattern, get found text, and get page
number found on

Ah, hasOwnProperty is a JavaScript only method.

Since you know that you're passing text, you could just skip that --
eliminate the test and go straight to the parent text frame.

Dave

-------------------------
View/reply at Using Grep to find text pattern, get found text, and
get page number found on[1]
Replies by email are OK.
Use the unsubscribe[2] form to cancel your email subscription.



Links:
------
[1] http://www.adobeforums.com/webx?13@@.59b7e2c7/2
[2] http://www.adobeforums.com/webx?280@@.59b7e2c7!folder=.eea52bc
Technical Details
Message-ID: <20090211174418.10076p4xlqpe5fcg@webmail.intermedia.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossing
References: <59b7e2c7.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,c068c4e91c9ba325
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Ric_Miller@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Using Grep to find text pattern, get
 found text, and get page number found on
Message-ID: <20090211174418.10076p4xlqpe5fcg@webmail.intermedia.net>
Date: Wed, 11 Feb 2009 17:44:18 -0800
References: <59b7e2c7.-1@webcrossing.la2eafNXanI>
Lines: 48
Received: from 64.78.19.61 by adobeforums.com; Wed, 11 Feb 2009 17:44:55 -0800
Received: from localhost (rmf-1.msoutlookonline.net [127.0.0.1])
 by rmf-1.msoutlookonline.net (Postfix) with ESMTP id 1EFB156E2A2
 for <adobe.scripting.indesign@adobeforums.com>; Wed, 11 Feb 2009 17:44:24 -0800 (PST)
X-Virus-Scanned: by amavisd-new at rmf-1.msoutlookonline.net
Received: from rmf-1.msoutlookonline.net ([127.0.0.1])
 by localhost (rmf-1.msoutlookonline.net [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id aFOfCZY4NdZx
 for <adobe.scripting.indesign@adobeforums.com>;
 Wed, 11 Feb 2009 17:44:18 -0800 (PST)
Received: from horde1.intermedia.net (horde1.intermedia.net [64.78.61.196])
 by rmf-1.msoutlookonline.net (Postfix) with ESMTP id 2754256E1CE
 for <adobe.scripting.indesign@adobeforums.com>; Wed, 11 Feb 2009 17:44:18 -0800 (PST)
Received: from trustvpn.presidio.gov (trustvpn.presidio.gov [12.34.90.61])
 by webmail.intermedia.net (Horde Framework) with HTTP; Wed, 11 Feb 2009
 17:44:18 -0800
Content-Disposition: inline
User-Agent: Internet Messaging Program (IMP) H3 (4.3)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit