🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17859

Re: Select all - Scripting Text Frame and Text Wrap (AS)

#17859
From: Kari Puikkonen
Date: Fri, 09 May 2003 19:35
36 lines
1665 bytes
Ole,

Yes of course! (One shouldn't make AppleScripts at Friday night<g>)

So this script fixes those text wraps in hole document:



tell application "InDesign 2.0.2" 
	tell active document 
		set myPageItems to text frames 
		set myTextWraps to {} 
		repeat with myPageItem in myPageItems 
			if text wrap of myPageItem is not none then 
				copy myPageItem to end of myTextWraps 
			end if 
		end repeat 
	end tell

	tell myTextWraps 
		set myPageItems to {text frame} 
		if (count myTextWraps) > 0 then 
			repeat with myCounter from 1 to (count myTextWraps) 
				if (class of item myCounter of myTextWraps) is in myPageItems then 
					set myPageItem to item myCounter of myTextWraps 
					set properties of myPageItem to {inset spacing:{0, 0, 0, 0}} 
					set properties of myPageItem to {text wrap:none} 
				end if 
			end repeat 
		end if 
	end tell 
end tell



Kari
Technical Details
Message-ID: <1de909b0.4@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <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-09 12:38:20 PST
From: "Kari Puikkonen" <kari.puikkonen@welho.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!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.4@WebX.la2eafNXanI>
Date: Fri, 9 May 2003 12:35:41 -0700
References: <1de909b0.-1@WebX.la2eafNXanI>
Lines: 32
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit