🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #96

Re: how to group some objects and duplicate it and then enlarge the same group using javascript ??

#96
From: jongware
Date: Mon, 30 Mar 2009 11:45
8 lines
1588 bytes
What version of InDesign? For CS3, you can start by looking at Class Group ("A group" is its description in the ESTK Help) and its collection Groups. Those contains a lot, if not all, of the features you request:

* Groups.Group add (groupItems: Array of PageItem[, layer:Layer][, at:LocationOptions=UNKNOWN][, reference:any][, withProperties:Object]) -- Creates a new Group
* PageItem Group.duplicate ([to:any][, by: Array of number]) -- Duplicates the Group at the specified location or offset
* void Group.move ([to:any][, by: Array of number]) -- Moves the Group to a new location.
* Group.absoluteHorizontalScale, Group.absoluteVerticalScale -- The horizontal and vertical scale of the Group relative to its containing object.

(All copied straight out of the CHM version <http://www.jongware.com/binaries/IdCs3Chm.zip> of the ESTK Help, created by me and put into CHM by ABC GREEN. HTML version somewhere at the same location.)
Technical Details
Message-ID: <59b87303.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <59b87303.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,8506c72425d12370
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: jongware@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: how to group some objects  and  duplicate
 it and then enlarge the same group using javascript
 ??
Message-ID: <59b87303.0@webcrossing.la2eafNXanI>
Date: Mon, 30 Mar 2009 04:45:03 -0700
References: <59b87303.-1@webcrossing.la2eafNXanI>
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit