Article View: adobe.scripting.indesign
Article #17411Re: select layer page items
From: Dave Saunders
Date: Mon, 09 Jun 2003 20:48
Date: Mon, 09 Jun 2003 20:48
27 lines
1514 bytes
1514 bytes
When you say "select" do you literally mean that or are you just trying to get a list of references to all the items so you can operate on them? For example: tell application "InDesign 2.0.2" tell document 1 set myLayer to layer "LayerName" set myPIs to every page item whose item layer is myLayer end tell end tell This might not be quite what you want, but I hope it points you in the right direction. If you only want to work on the active spread: tell application "InDesign 2.0.2" tell document 1 set myLayer to layer "LayerName" end tell tell active spread of active window set myPIs to every page item whose item layer is myLayer end tell end tell And, if you really want to select them, then replace that set myPIs with "select" when telling the active spread. Dave
Technical Details
Message-ID:
<1de9777e.0@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de9777e.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,8b245ba1f1b96c10 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-06-09 14:08:31 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-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: select layer page items Message-ID: <1de9777e.0@WebX.la2eafNXanI> Date: Mon, 9 Jun 2003 13:48:32 -0700 References: <1de9777e.-1@WebX.la2eafNXanI> Lines: 31 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit