Article View: adobe.scripting.indesign
Article #15678Re: Duplicating an inline frame
From: Dave_Saunders
Date: Thu, 20 Nov 2003 17:20
Date: Thu, 20 Nov 2003 17:20
23 lines
1764 bytes
1764 bytes
In the words of the immortal William Bendix, "What a revolting development this is." - Life of Riley.
I can't seem to make storing in a library work. Here's what I tried:
//DESCRIPTION: Test of duplicating using a library
myItem = app.selection[0];
myLib = app.libraries.item('BioLib');
myAsset = myLib.store(myItem);
I selected the inline text frame, but the store command reports: Object is invalid.
I confess to finding the tables in the Scripting Guide that describe methods to be someone opaque. For the store method there's the added complication that there is a composition mistake in that the description of Type clearly relates to something else. [This is on page 786 of the guide.] Sneaking a look at the VB equivalent on page 1446 doesn't help: what does "variant" mean?
What am I supposed to do with the word "using"? I tried:
myAsset = myLib.store({using:myItem});
but that gave the same error.
Help! If I can't duplicate this darn frame one way or another, I'm going to have to move the original text and I'm leary of doing that because I'm going to get hopelessly lost.
Dave
Technical Details
Message-ID:
<2cce7fd4.1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.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 09:38:17 PST From: Dave_Saunders@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.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.1@webx.la2eafNXanI> Date: Thu, 20 Nov 2003 09:20:30 -0800 References: <2cce7fd4.-1@webx.la2eafNXanI> Lines: 32 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit