🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15802

Re: From AppleScript to JavaScript

#15802
From: Shane_Stanley
Date: Mon, 17 Nov 2003 21:44
18 lines
1228 bytes
The number of ways you can refer to most items has increased in CS -- 
most classes are "y numeric index, by name, as a range of elements, 
before/after another element, satisfying a test, by ID". So you can use 
the following sorts of forms:

tell application "InDesign CS"
	tell document 1
		page item 2
		page item "Blah"
		page items 2 thru 4
		page item after text frame 1
		page item id 267
		page item 1 whose class is text frame
	end tell
end tell

--
Shane Stanley <sstanley@myriad-com.com.au>
Technical Details
Message-ID: <32AD44B8-1947-11D8-90CA-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: <2cce703d.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,a013b37afbc31d97
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-11-17 14:08:05 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: From AppleScript to JavaScript
Message-ID: <32AD44B8-1947-11D8-90CA-003065D61B90@myriad-com.com.au>
Date: Mon, 17 Nov 2003 13:44:19 -0800
References: <2cce703d.-1@webx.la2eafNXanI>
Lines: 20
X-Mailer: Apple Mail (2.606)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit