🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #106

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

#106
From: jongware
Date: Thu, 02 Apr 2009 10:17
24 lines
1511 bytes
Well, I'm at a loss.

Dave Saunders, in his JS blog <http://jsid.blogspot.com/2006_04_01_archive.html>, simply uses

      myParent.groups.add(gpArray)




-- then again, he was using CS2 there.

I tried numerous variations for about three consecutive hours (my boss doesn't read this forum), but the best I got was finding out

      var myGroup = app.activeDocument.groups.add(app.selection,null,LocationOptions.AT_BEGINNING,app.activeWindow.activePage);	//
      NOT app.documents!




complains about 'no parent'. The location is optional; yet, if you omit it, you get another error.

I found Dave's page with some google-fu: Google groups site:jsid.blogspot.com <http://www.google.com/search?q=groups+site%3Ajsid.blogspot.com> has a few more hits. I didn't read them all, but I think you should.

Or make Dave an offer he can't refuse.
Technical Details
Message-ID: <59b87303.12@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.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!news2.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.12@webcrossing.la2eafNXanI>
Date: Thu, 2 Apr 2009 03:17:35 -0700
References: <59b87303.-1@webcrossing.la2eafNXanI>
Lines: 25
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit