🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8562

Placing a snippet at a place point

#8562
From: Martin Fischer*
Date: Wed, 11 Oct 2006 12:41
23 lines
1321 bytes
Placing a snippet seems to be quite easy.
But one thing is puzzling me about half an hour:

Trying to place a snippet at a place point seems to ignore the place point but to use the original position.
My example:

 
var myFile = new File("~/Desktop/test.inds"); 
var mySnippet = app.documents[0].pages[0].place(myFile, [10,20]); 




The snippet is placed at the orginal position (the export position).

Trying to move the snippet with "mySnippet.move([9,9])" results an error: "undefined is not an object".

What else can I do to place a snippet to the position I want to?

When I use a pdf-file instead of the snippet (var myFile = new File("~/Desktop/test.pdf")) both will work: the place point and the move()-command.

Thanks
Martin
Technical Details
Message-ID: <3bc1efa0.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,54f501eadc926d56,start
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Martin Fischer*" <martin.fischer@online.de>
Newsgroups: adobe.scripting.indesign
Subject: Placing a snippet at a place point
Message-ID: <3bc1efa0.-1@webcrossing.la2eafNXanI>
Date: Wed, 11 Oct 2006 05:41:07 -0700
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing