Article View: adobe.scripting.indesign
Article #8826Re: HELP!! How to group two objects?
From: Dave_Saunders
Date: Sun, 24 Sep 2006 10:59
Date: Sun, 24 Sep 2006 10:59
9 lines
1499 bytes
1499 bytes
They have to be on the same page to be grouped, so I'm assuming that you derived myPage from the activePage. Given that, this should work:
myGroup = myPage.groups.add{[myImage,myFrame]}
Whenever you want to make a new something, you should think in terms of adding one of those things to the appropriate collection. Then check that collection in the Reference to see if it has an add() method. If it does, then follow the directions (so to speak). Just watch out for a consistent mistake that has been made with the presentation of the LocationOptions enumeration: for example, on page 792 under Groups Methods for the At parameter of the add method, the VB version is presented. In any case in the reference where the names start with "id", just ignore the "id" part.
Also, I believe that Layer, At and Reference are actually optional parameters for this instance of the add() method.
Dave
Technical Details
Message-ID:
<3bc1c190.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.germany.com!news.isoc.lu!webcrossingReferences:
<3bc1c190.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,aa12b9332cb82d57 X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Dave_Saunders@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.germany.com!news.isoc.lu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: HELP!! How to group two objects? Message-ID: <3bc1c190.0@webcrossing.la2eafNXanI> Date: Sun, 24 Sep 2006 03:59:25 -0700 References: <3bc1c190.-1@webcrossing.la2eafNXanI> Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit