🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #98

Re: CS3 JS flag which page has empty frame

#98
From: John_Kordas
Date: Mon, 30 Mar 2009 11:59
16 lines
1154 bytes
I'm trying to remove the rectangle on the right hand page but the value returned is not correct.

myPages[j] is currently page 3 which has the rectangle that I want to expand to the right hand page. So to remove the right hand page rectangle before expnading I'm trying:

var rhandpg = j+1;
myPages[rhandpg].rectangles.item(0).remove();

but I get the error Object invalid.

if I leave it as

myPages[j].rectangles.item(0).remove();

The rectangle on page 3 is removed.

Is this because the loop has passed page 4 and will not allow me to remove it?
Technical Details
Message-ID: <59b83b3d.14@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.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: John_Kordas@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: CS3 JS flag which page has empty frame
Message-ID: <59b83b3d.14@webcrossing.la2eafNXanI>
Date: Mon, 30 Mar 2009 04:59:44 -0700
References: <59b83b3d.-1@webcrossing.la2eafNXanI>
Lines: 20
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit