🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1412

Re: Print notes from InDesign CS4

#1412
From: Peter Kahrel
Date: Fri, 06 Feb 2009 11:23
31 lines
1442 bytes
Here you go. It finds notes in tables as well. It ignores notes in inline frames.

Peter

(Glad you like the GREP title. There's a CS4 version, by the way.)



#target indesign;

array = []; 
notes = [];

// notes in main stories 
notes = app.activeDocument. 
   stories.everyItem(). 
   notes.everyItem().getElements();

// notes in tables 
try {notes = notes.concat (app.activeDocument. 
         stories.everyItem(). 
         tables.everyItem(). 
         notes.everyItem().getElements())} catch (_){};

for (i = 0; i < notes.length; i++) 
   try {array.push (notes[i].texts[0].contents +  
         ' [' + notes[i].storyOffset.parentTextFrames[0].parent.name +']')} catch (_){};

tf = app.documents.add ().textFrames.add   
   ({geometricBounds: ['10mm','10mm','250mm','200mm']});  
tf.contents = array.join ('\r\r')
Technical Details
Message-ID: <59b7c954.3@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
References: <59b7c954.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,29e95913da73922b
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!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Print notes from InDesign CS4
Message-ID: <59b7c954.3@webcrossing.la2eafNXanI>
Date: Fri, 6 Feb 2009 03:23:28 -0800
References: <59b7c954.-1@webcrossing.la2eafNXanI>
Lines: 34
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit