🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19646

Re: More Whose Trouble

#19646
From: Dave Saunders
Date: Wed, 27 Nov 2002 19:45
23 lines
1240 bytes
Aha! It's the word "text" that is blowing things. This works:



tell application "InDesign 2.0.1" 
 set theIndex to index of (character 1 whose contents is "{") of paragraph 1 of selection 
end tell



FWIW, the following also crashes ID:



tell application "InDesign 2.0.1" 
 set theIndex to index of (character 1 whose text is "{") of paragraph 1 of selection 
end tell



I'm not sure where I got the idea that I needed "text contents" but there you go. At least I can now move forward.

Dave
Technical Details
Message-ID: <1de6c917.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de6c917.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,77d3e5fb17b0500
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-11-27 12:08:11 PST
From: "Dave Saunders" <daves@pdsassoc.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: More Whose Trouble
Message-ID: <1de6c917.0@WebX.la2eafNXanI>
Date: Wed, 27 Nov 2002 11:45:24 -0800
References: <1de6c917.-1@WebX.la2eafNXanI>
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit