Article View: adobe.scripting.indesign
Article #19521Re: Text frame options/preferences
From: Olav Kvern
Date: Sun, 15 Dec 2002 17:46
Date: Sun, 15 Dec 2002 17:46
33 lines
1595 bytes
1595 bytes
Kari--
No, this isn't a limit of ID scripting--it's because you're working on item 1 of selection--that's the first text frame in the list of selected items.
The selection property is a list. Something like: {item 1, item 2, item 3, item 4}. When you refer to item 1, that's all you'll get.
You can either iterate through the list:
repeat with myTextFrame in mySelection
set inset spacing of myTextFrame to {0,14.173,0,0}
end repeat
...or you can tell all of the text frames in the selection to change. My Mac is busy playing a DVD for my son right now, but it should be something like:
tell text frames of selection
set inset spacing to {0,14.173,0,0}
end tell
...which should be quicker.
Thanks,
Ole
Technical Details
Message-ID:
<1de703d8.0@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!newshosting.com!news-xfer1.atl.newshosting.com!proxad.net!proxad.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de703d8.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,2d0d7a53ed2c2471 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-12-15 10:08:07 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!newshosting.com!news-xfer1.atl.newshosting.com!proxad.net!proxad.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Text frame options/preferences Message-ID: <1de703d8.0@WebX.la2eafNXanI> Date: Sun, 15 Dec 2002 09:46:58 -0800 References: <1de703d8.-1@WebX.la2eafNXanI> Lines: 30 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit