Article View: adobe.scripting.indesign
Article #16051Re: What's the best way?
From: Robert_Kyle
Date: Fri, 24 Oct 2003 05:22
Date: Fri, 24 Oct 2003 05:22
17 lines
1202 bytes
1202 bytes
Olav: Sorry to be so dense, but I'm just not getting a count of images. tell application "InDesign" tell active document count images of selection count images of item 1 of selection count images of rectangle 1 end tell end tell all return 0 when it ought to be 1. "exists image 1" always returns false. However, if I ask for ""page item 1 of item 1 of selection", I get a reference to a PostScript picture when the frame contains an image. If the frame is empty, I get an error. Is this a reliable way to check for the presence of an image?
Technical Details
Message-ID:
<2ccdf3ef.1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccdf3ef.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,74526e057849107d X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-10-23 22:37:31 PST From: Robert_Kyle@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: What's the best way? Message-ID: <2ccdf3ef.1@webx.la2eafNXanI> Date: Thu, 23 Oct 2003 22:22:29 -0700 References: <2ccdf3ef.-1@webx.la2eafNXanI> Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit