Article View: adobe.scripting.indesign
Article #15915Re: Missing images on XML import
From: Olav_Kvern
Date: Mon, 03 Nov 2003 19:35
Date: Mon, 03 Nov 2003 19:35
26 lines
1704 bytes
1704 bytes
Aigars Grins-- a. missing images I've seen it--in my case, at least, it's been because the href to the image file contained characters that XML didn't like. Take a look at your XML output and check the file paths. b. pasting images I'm assuming that "backupItem" is in one document, and that "newItem" is in another...right? If this is the case, then you'll need to change app.ActiveWindow.ActiveDocument to the new document before you'll be able to select the item. Instead of working with selections, however, why not: * Get a reference to backupItem * Get a reference to the image contained by backupItem (I assume this is the frame containing the image) * Get the Link of the image * Get the file path from the Link * Get a reference to the new frame * Tell tell the new frame to place the image This way, you don't have to worry about the selection, or using PasteInto, or switching application windows, etc. I'm not sure what you mean when you say COM support is "lacking". All of the InDesign scripting functions are supported. Thanks, Ole
Technical Details
Message-ID:
<2cce25cc.0@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2cce25cc.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,c928bd7670cd395b X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-11-03 11:38:02 PST From: Olav_Kvern@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: Missing images on XML import Message-ID: <2cce25cc.0@webx.la2eafNXanI> Date: Mon, 3 Nov 2003 11:35:34 -0800 References: <2cce25cc.-1@webx.la2eafNXanI> Lines: 34 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit