Article View: adobe.scripting.indesign
Article #15264Re: Retaining/Inheriting when replacing images - AS
From: Olivier_Berquin
Date: Tue, 09 Dec 2003 13:51
Date: Tue, 09 Dec 2003 13:51
37 lines
1711 bytes
1711 bytes
> I was hoping to figure it out on my own. Having troubles. Would I use somthing
> like:
>
> set imageProperties to properties of selection
>
> That would capture that info, right. How do I apply that to the newly
> replacing image?
>
> set properties of selection to imageProperties
If you do something like that, you copy only the "rectangle" (and it's
properties) at the same coordinates, right ?
If you want to apply the same scale, opacity, rotation angle, ... of the
first "image" to the second one, you can use something like this:
tell application "InDesign 2.0.2"
set myDoc to active document
tell myDoc
-- path & name of the first image :
set thePath to (file path of link 1) as text
-- object reference of the first image:
set thePic to parent of link 1
set myProp to properties of thePic
end tell
end tell
Now, you can select (store) each property and apply to the second image.
Oli.
Technical Details
Message-ID:
<BBFB920C.39C2%olb@microscript.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2cce0284.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,f8f302a73e62fbf5 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-12-09 06:07:58 PST From: Olivier_Berquin@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: Retaining/Inheriting when replacing images - AS Message-ID: <BBFB920C.39C2%olb@microscript.com> Date: Tue, 9 Dec 2003 05:51:56 -0800 References: <2cce0284.-1@webx.la2eafNXanI> Lines: 41 User-Agent: Microsoft-Entourage/10.0.0.1309 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit