Article View: adobe.scripting.indesign
Article #779Re: extract items from a frame
From: Ola_Khrapatin
Date: Tue, 03 Mar 2009 09:43
Date: Tue, 03 Mar 2009 09:43
17 lines
1105 bytes
1105 bytes
well, in the end I used this script (it's the one you wrote at first, with the "try-catch" added to it.
myPages = app.activeDocument.pages;
for (i = 0; i < myPages.length; i++) { myFrames = myPages[i].allPageItems; for (j = myFrames.length-1; j > -1; j--)
{
try
{
myPages[i].textFrames.add (myFrames[j].properties);
myFrames[j].remove();
}
catch(_){}
}
}
It seemed to work very nicely, only the text lost all of its styling.
Any idea how to solve that?
Technical Details
Message-ID:
<59b81716.7@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b81716.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,50e6c9aacf044ae5 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Ola_Khrapatin@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: extract items from a frame Message-ID: <59b81716.7@webcrossing.la2eafNXanI> Date: Tue, 3 Mar 2009 01:43:57 -0800 References: <59b81716.-1@webcrossing.la2eafNXanI> Lines: 21 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit