Article View: adobe.scripting.indesign
Article #17923Re: Select all - Scripting Text Frame and Text Wrap (AS)
From: Dave Saunders
Date: Wed, 07 May 2003 22:57
Date: Wed, 07 May 2003 22:57
18 lines
1383 bytes
1383 bytes
Probably this is what you need:
tell application "InDesign 2.0.2"
set inset spacing of text frame preferences of every text frame of document 1 to {0,0,0,0}
set text wrap of every page item of document 1 to none
end tell
Notice that it's not necessary to select things in order to operate on them by script.
You could run into a couple of problems:
1. Some text frames have only a single inset spacing value if they're non-rectangular.
2. Maybe you don't want to deal with every page item (I extrapolated).
3. You might still have text wraps attached to things inside groups or to an image rather than its frame.
Dave
Technical Details
Message-ID:
<1de909b0.0@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de909b0.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,4bf66e2b292dec9 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-05-07 16:08:09 PST From: "Dave Saunders" <daves@pdsassoc.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-03!sn-xit-01!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 all - Scripting Text Frame and Text Wrap (AS) Message-ID: <1de909b0.0@WebX.la2eafNXanI> Date: Wed, 7 May 2003 15:57:28 -0700 References: <1de909b0.-1@WebX.la2eafNXanI> Lines: 22 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit