🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #784

Re: extract items from a frame

#784
From: Peter Kahrel
Date: Tue, 03 Mar 2009 13:28
34 lines
1246 bytes

      I think the problem is that there is probably a difference between when
      you anchor a frame to text




No, that's not the case. But you could take out the "if (myFrames..." line and see what happens:

#target indesign;

myPages = app.activeDocument.pages; 
for (i = 0; i < myPages.length; i++) 
  { 
  myFrames = myPages[i].allPageItems; 
  for (j = myFrames.length-1; j > -1; j--) 
    { 
    try 
      { 
      gb = myFrames[j].geometricBounds; 
      myFrames[j].duplicate ([gb[1],gb[0]]); 
      myFrames[j].remove(); 
      } 
    catch(_){} 
    } 
  } 




Peter

PS: Which InDesign version do you use?
Technical Details
Message-ID: <59b81716.10@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <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: "Peter Kahrel" <kahrel@kahrel.plus.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: extract items from a frame
Message-ID: <59b81716.10@webcrossing.la2eafNXanI>
Date: Tue, 3 Mar 2009 05:28:24 -0800
References: <59b81716.-1@webcrossing.la2eafNXanI>
Lines: 28
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit