🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15423

bookcontent.status crashes InDesign

#15423
From: Teus_de_Jong
Date: Fri, 28 Nov 2003 11:50
11 lines
1336 bytes
I've got a simple script that looks if a document in a book is open. It worked in ID2, but in ID3 asking for the property 'status' of bookContents not only does not work, but it crashes ID3. I've taken only the necessary lines to reproduce the crash:

var bc = app.books[0].bookContents[0];
// check I've got the right thing
alert(bc.fullName);
// now get the status
alert(bc.status);

The last statement crashes ID3 (Adobe InDesign is shutting down. A serious error was detected ...). It is language independent, because I get the same result if I do this from Delphi. Am I doing something wrong? Or is it a bug? There is of course a workaround (looking if the document is open by iterating through the open documents).

Teus de Jong
Technical Details
Message-ID: <2ccea31a.-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!webx

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,b9f10075290e1d4b,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-11-28 04:08:08 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: bookcontent.status crashes InDesign
Message-ID: <2ccea31a.-1@webx.la2eafNXanI>
Date: Fri, 28 Nov 2003 03:50:59 -0800
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit