Article View: adobe.scripting.indesign
Article #1843[JS] [CS3] Create pageItem in the View Centre
From: WellerUK_work
Date: Tue, 20 Jan 2009 11:56
Date: Tue, 20 Jan 2009 11:56
29 lines
1876 bytes
1876 bytes
Hi I'm building script which adds new item into product catalogue based on the code from the prompt() dialog. When I run : App.activeDocument.rectangles.add() The new rectangle is created on the first page of the document. app.activeDocument.layoutWindows[0].activePage.rectangles.add() is better, but it always places the rectangle on the first page of the spread, which is not very helpful for the user who is zoomed into the opposite corner of the spread app.activeDocument.layoutWindows[0].activePage.rectangles.add().select(); app.cut(); app.paste(); does exactly what I want but is awfully slow, when I deal with complex object Is there a way to position page items in relation to the screen coordinates? Thanks for help weller
Technical Details
Message-ID:
<C59B6C52.7A6F%mhrdina@hama.co.uk>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,a8b1048021777235,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: WellerUK_work@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: [JS] [CS3] Create pageItem in the View Centre Message-ID: <C59B6C52.7A6F%mhrdina@hama.co.uk> Date: Tue, 20 Jan 2009 03:56:02 -0800 Lines: 33 Received: from smarthost1.mail.uk.easynet.net [212.135.6.11] by adobeforums.com; Tue, 20 Jan 2009 03:58:42 -0800 Received: from [217.205.62.106] (helo=HamaEXC01.hamahq.local) by smarthost1.mail.uk.easynet.net with esmtp (Exim 4.10) id 1LPFFD-000F3G-00 for adobe.scripting.indesign@adobeforums.com; Tue, 20 Jan 2009 11:58:11 +0000 Received: from 192.168.40.141 ([192.168.40.141]) by HamaEXC01.hamahq.local ([192.168.40.203]) with Microsoft Exchange Server HTTP-DAV ; Tue, 20 Jan 2009 11:58:10 +0000 User-Agent: Microsoft-Entourage/11.0.0.040405 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit