🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19560

Re: Check for Forced Line Break

#19560
From: Shane Stanley
Date: Fri, 06 Dec 2002 03:11
26 lines
1691 bytes
in article 1de6e492.-1@WebX.la2eafNXanI, Jay Fraser wrote:

> I'm trying to check a paragraph to see if it contains a forced line break.
> What I've got is:
> 
> tell myDocument
> set mySpecial to forced line break
> repeat with myCounter from 1 to 10
> set myPara to paragraph myCounter of myStory
> if myPara contains mySpecial then
> set fill color of text in paragraph myCounter of myStory to myPink
> end if
> end repeat
> end tell
> 
> That seems to work for everything except forced line break. I tried adding "as
> unicode text" to lines 2 and 4, but that didn't seem to help.
> 
> What am I missing?

Unfortunately the special characters behave differently when alone than when
part of a longer string. The forced line break is, in fact, ASCII character
10, so use "set mySpecial to ascii character 10".

-- 
Shane Stanley,  sstanley@myriad-com.com.au
Technical Details
Message-ID: <BA16609D.468C1%sstanley@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de6e492.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,5ea6e5ea8360f2ba
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-12-05 19:37:38 PST
From: Shane Stanley <sstanley@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Check for Forced Line Break
Message-ID: <BA16609D.468C1%sstanley@myriad-com.com.au>
Date: Thu, 5 Dec 2002 19:11:42 -0800
References: <1de6e492.-1@WebX.la2eafNXanI>
Lines: 31
User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.6
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit