Article View: adobe.scripting.indesign
Article #15679Re: Duplicating an inline frame
From: Olav_Kvern
Date: Thu, 20 Nov 2003 18:15
Date: Thu, 20 Nov 2003 18:15
13 lines
1891 bytes
1891 bytes
Dave-- Sorry about the incorrect text on page 786. It would originally have said "object" (which is also not very helpful), but it looks like one of my find/change routines went wrong in this case. It should be (at the very least) "object or array of objects"--in the VB version, "Variant" means that it might be a single item or an array of items--or a string or object reference or an enum, for that matter. In cases where the value could be either a string or an object (as in applied character style or fill color for a text object, for example), I tried to change the value to something a bit more clear. My find/change routines tried to look at the object type and determine the correct replacement string, and clearly failed in this instance. In any case, your script works fine when you select the inline frame using the Selection tool. It fails when you select the inline frame using the Text tool, but that's because you can't do that from the user interface, either. This was something of a surprise to me, too--when you have text selected with the text tool, you *can't* add it to the library. The trouble is--I expect that you want to store the formatting applied to the character containing the inline frame, as well. Right? Thanks, Ole
Technical Details
Message-ID:
<2cce7fd4.2@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:
<2cce7fd4.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,74b305fb199f34bd X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-11-20 10:38:16 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: Duplicating an inline frame Message-ID: <2cce7fd4.2@webx.la2eafNXanI> Date: Thu, 20 Nov 2003 10:15:54 -0800 References: <2cce7fd4.-1@webx.la2eafNXanI> Lines: 27 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit