🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2249

Getting Page number for Notes

#2249
From: Lakshmi11
Date: Fri, 19 Dec 2008 15:00
24 lines
1307 bytes
Hi

I am using the below methods to retreive page number of notes.

Method 1

var myNotes = myDocument.stories.item(k).notes.everyItem().getElements();

Method 2

myDocument.stories.item(k).paragraphs.item(i).notes.length;

Wat is the best way to scan through the notes in a document. I am trying to get the page number for each note(Page on which the note is placed)

For Method 1:
var myFrame = myDocument.stories.item(k).textContainers[0];
				var myPage=myFrame.parent.name;

For Method 2:
myDocument.stories.item(k).paragraphs.item(i).parentTextFrames[0].parent.name;

In both the cases some of the page numbers aren't displayed. Can somebody tell me is there any other way or am i doing something wrong.

Thanks
Technical Details
Message-ID: <59b74ff0.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!postnews.google.com!news2.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,476d53a6a7218708,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Lakshmi11@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!postnews.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Getting Page number for Notes
Message-ID: <59b74ff0.-1@webcrossing.la2eafNXanI>
Date: Fri, 19 Dec 2008 07:00:04 -0800
Lines: 28
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit