🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16430

[VB] Scripting Bug?

#16430
From: Alex Bu
Date: Sun, 14 Sep 2003 20:43
20 lines
1426 bytes
Hi,

can anyone please try this little script with the instructions underneath. It crashes Indesign on my computer:

Dim MyIndesign
Dim myLibrary
Dim myAsset
Set myIndesign = CreateObject("InDesign.Application.2.0")
Set myTable = myInDesign.Selection.Item(1).Tables.Item(1)
Set myReplace0 = myTable.Search("^s", False, False, "")

The problem is the "^s". It's a nonbreaking space. To reproduce the crash try the following:

1. New document
2. Add a text frame and a 1 row/3col table in it.
3. From left to right add one nonbreaking space to the first cell, one to the second and two to the third.
4. Now select the textframe and run the script above => crash. Well, at least on my pc.

Thanks,
Alex
Technical Details
Message-ID: <2ccd6d42.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!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,b6a6e8e82a9ca1ff,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-09-14 14:07:36 PST
From: "Alex Bu" <12three@gmx.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: [VB] Scripting Bug?
Message-ID: <2ccd6d42.-1@webx.la2eafNXanI>
Date: Sun, 14 Sep 2003 13:43:37 -0700
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit