Article View: adobe.scripting.indesign
Article #19755VB6&ID - Replace function like ImportXML
From: David Ames
Date: Wed, 20 Nov 2002 23:24
Date: Wed, 20 Nov 2002 23:24
13 lines
1540 bytes
1540 bytes
Hey all, I'm new to ID scripting (from VB6), and am trying to recreate a function like the ImportXML function - because of things like when images are replaced, ImportXML resizes then.... So basicly i'm iterating through the each PageItem in the PageItems collection and using the ContentType property to see if the PageItem is an image. I've managed to find my images in the document, but now I want to RELINK the image. The only function I can see that relinks is from the idLink object, but i can't figure out how the idLink object is related to a PageItem object, the ID's are definatly different... Can someone please tell me how to replace the content source (image source) of a PageItem? Also, does anyone have an object model for ID2? Something that shows how the objects in ID2 are related to each other.... Ta!
Technical Details
Message-ID:
<1de6b092.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,9fb81744ad733cf6,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-11-20 15:37:59 PST From: "David Ames" <davida@in-site.com.au> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: VB6&ID - Replace function like ImportXML Message-ID: <1de6b092.-1@WebX.la2eafNXanI> Date: Wed, 20 Nov 2002 15:24:43 -0800 Lines: 22 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit