🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19226

Re: validating object in AS

#19226
From: Dave Saunders
Date: Sun, 12 Jan 2003 18:54
15 lines
1217 bytes
If you:

get class of selection

and the result is "cell" then you have at least a part of a table selected.

You can find the table by referencing the parent of the selection.

And then, you'd have to compare the number of cells in the table with the number in the selection to see if the whole table was selected.

Perhaps there's an easier way, but that's the first thing that comes to my mind.

Hope this helps.

Dave
Technical Details
Message-ID: <1de757cd.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1B52FC0AF9FE552EFC1980205E2C059D@in.WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,4fc3a4cf8c70e00d
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-01-12 11:08:30 PST
From: "Dave Saunders" <daves@pdsassoc.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: validating object in AS
Message-ID: <1de757cd.0@WebX.la2eafNXanI>
Date: Sun, 12 Jan 2003 10:54:01 -0800
References: <1B52FC0AF9FE552EFC1980205E2C059D@in.WebX.la2eafNXanI>
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit