🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #14706

Re: Here's a suggestion for a cool script!

#14706
From: Shane_Stanley
Date: Thu, 22 Jan 2004 04:52
38 lines
1738 bytes
First you're going to need some way of marking the frames to override. 
So you could select them and run:

tell application "InDesign CS"
	set label of selection to "Override"
end tell

Then you'd need a second script that would go through and override the 
items on the actual pages. Something like this:


tell application "InDesign CS"
	tell document 1
		set pageCount to pages per document of document preferences
		repeat with i from 1 to pageCount
			set theMaster to applied master of page i
			try
				override (page items of theMaster whose label is "Override") 
destination page page i
			end try
			repeat
				try -- in case the master is based on another master
					set theMaster to applied master of theMaster
					override (page items of theMaster whose label is "Override") 
destination page page i
				on error
					exit repeat
				end try
			end repeat
		end repeat
	end tell
	beep
	display dialog "Finished."
end tell


--
Shane Stanley <sstanley@myriad-com.com.au>
Technical Details
Message-ID: <D11E36B2-4C96-11D8-B512-003065D61B90@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccf80a1.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,bfceb222b45f5ab9
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2004-01-21 21:07:47 PST
From: Shane_Stanley@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: Here's a suggestion for a cool script!
Message-ID: <D11E36B2-4C96-11D8-B512-003065D61B90@myriad-com.com.au>
Date: Wed, 21 Jan 2004 20:52:44 -0800
References: <2ccf80a1.-1@webx.la2eafNXanI>
Lines: 39
X-Mailer: Apple Mail (2.609)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit