🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15782

Re: Grops in JavaScript

#15782
From: Olav_Kvern
Date: Fri, 14 Nov 2003 22:18
19 lines
1193 bytes
Oleg--

What is the object? All page items should respond to the move method as in my previous message. Try running the following JavaScript:



var myDocument = app.documents.add(); 
with(myDocument.pages.item(0)){ 
    var myRectangle = rectangles.add(undefined, undefined, undefined, {geometricBounds:[1, 1, 6, 6]}); 
    //Move rectangle to 6, 6. 
    myRectangle.move([6, 6]); 
    //Move rectangle by 4, 2 
    myRectangle.move(undefined, [4, 2]); 
}

If this does not work, then there must be something wrong with the InDesign installation.
Thanks,

Ole
Technical Details
Message-ID: <2cce5de8.4@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2cce5de8.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,542450f77787096d
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-11-14 14:37:54 PST
From: Olav_Kvern@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: Grops in JavaScript
Message-ID: <2cce5de8.4@webx.la2eafNXanI>
Date: Fri, 14 Nov 2003 14:18:00 -0800
References: <2cce5de8.-1@webx.la2eafNXanI>
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit