Article View: adobe.scripting.indesign
Article #15774Re: Grops in JavaScript
From: Olav_Kvern
Date: Fri, 14 Nov 2003 08:41
Date: Fri, 14 Nov 2003 08:41
26 lines
1491 bytes
1491 bytes
Oleg-- Ah, yes, I thought I might have to read the selection into an array, but didn't test it. (I think it did work at some point during development.) Sorry about that! The move example from the Scripting Guide works here--is it possible that the measurement strings are not being accepted? It might be that the "p" (for "picas") is getting changed into something else on your system (I don't know if you're using a localized version or the International English version). Try it without using measurement strings: //assuming that at least one page item is selected mySelection = app.selection[0]; mySelection.move([2, 6]); Does that work? Note that this is an absolute move--to perform a relative move, try something like this: //assuming that at least one page item is selected app.selection[0].move(undefined, [2, 6]); Thanks, Ole
Technical Details
Message-ID:
<2cce5de8.2@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<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 01:07:38 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.2@webx.la2eafNXanI> Date: Fri, 14 Nov 2003 00:41:42 -0800 References: <2cce5de8.-1@webx.la2eafNXanI> Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit