🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8908

Re: Embedding Image using Javascript in Indesign CS2

#8908
From: Peter_Kahrel
Date: Wed, 20 Sep 2006 07:38
10 lines
1015 bytes
To link an image in a document on the third page, use the place() method of page or insertion point. To place an image on a page (the third page here):

f = File( 'image path + name' )
app.activeDocument.pages[4].place( f )

To create an inline graphic, place it at an insertion point:

myInsertionPoint.place( f )

Place has a number of different options, which you can find in the scripting guide.
Technical Details
Message-ID: <3bc1b2a9.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!news.ecp.fr!news.stben.net!webcrossing
References: <3bc1b2a9.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,8d009beac4a1276
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Peter_Kahrel@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: Embedding Image using Javascript in Indesign CS2
Message-ID: <3bc1b2a9.0@webcrossing.la2eafNXanI>
Date: Wed, 20 Sep 2006 00:38:41 -0700
References: <3bc1b2a9.-1@webcrossing.la2eafNXanI>
Lines: 13
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!news.ecp.fr!news.stben.net!webcrossing