🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20228

Re: Select a Story

#20228
From: Dave Saunders
Date: Fri, 18 Oct 2002 11:51
13 lines
1229 bytes
If you just want to hit a single text frame, (you said you wanted the story), then you need: 

      set myframe to object reference of parent text frame of selection

But there are some potential problems with this: 

1. It only works for a text selection -- if you use the pointer to select the frame then you want: 

      set myframe to object reference of item 1 of selection

2. If the text selection extends into a second frame, you'll get an error (since the result is ambiguous). 

Dave
Technical Details
Message-ID: <1de63069.4@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeeder.edisontel.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de63069.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,1ba7e41667d1158d
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-10-21 03:57:52 PST
From: "Dave Saunders" <daves@pdsassoc.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeeder.edisontel.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Select a Story
Message-ID: <1de63069.4@WebX.la2eafNXanI>
Date: Fri, 18 Oct 2002 04:51:16 -0700
References: <1de63069.-1@WebX.la2eafNXanI>
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit