Article View: adobe.scripting.indesign
Article #15278[JS] pageReference.remove does not work
From: Teus_de_Jong
Date: Wed, 10 Dec 2003 13:56
Date: Wed, 10 Dec 2003 13:56
18 lines
1069 bytes
1069 bytes
The following javascript line does not work (nothing happens):
app.activeDocument.indexes[0].topics[0].pageReferences[0].remove;
while the following VB line (and the equivalent in Delphi) works:
set app = CreateObject("InDesign.Application.CS")
app.ActiveDocument.Indexes.Item(1).Topics.Item(1).PageReferences.Item(1).Delete
Could anyone tell me if there is another way to delete the page reference in javascript?
Teus de Jong.
Technical Details
Message-ID:
<2cceda2b.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,955c3fb59c19e44b,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-12-10 06:07:49 PST From: Teus_de_Jong@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: [JS] pageReference.remove does not work Message-ID: <2cceda2b.-1@webx.la2eafNXanI> Date: Wed, 10 Dec 2003 05:56:19 -0800 Lines: 14 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit