🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #100

Re: CS3 JS flag which page has empty frame

#100
From: Dave_Saunders
Date: Mon, 30 Mar 2009 12:38
9 lines
914 bytes
John,

It's unclear from what you write whether you realize that page 4 is app.activeDocument.pages[3]. Remember, JavaScript starts counting from zero.

For objects that have names, you can always put in an alert to test your assumptions:

alert(obj.name);

Dave
Technical Details
Message-ID: <59b83b3d.17@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossing
References: <59b83b3d.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,5f85c25f887dafb2
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dave_Saunders@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: CS3 JS flag which page has empty frame
Message-ID: <59b83b3d.17@webcrossing.la2eafNXanI>
Date: Mon, 30 Mar 2009 05:38:21 -0700
References: <59b83b3d.-1@webcrossing.la2eafNXanI>
Lines: 12
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit