🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17981

Re: AS changing text attributes

#17981
From: Martin Madsen
Date: Thu, 01 May 2003 22:54
11 lines
1445 bytes
I've tried the Applescript to change character style of everything within [BOLD]Bla[UNBOLD], but I'mt getting some strange errors.

The line "set myStartIndex to (index of character -1 of myStartItem) + 1" gives an error, but if i do the +1 in a new line ex: "set myStartIndex2 to (index of character -1 of myStartItem)
set myStartIndex to (myStartIndex2 + 1" it seems to work.

The really strange part begins when trying to remove the [UNBOLD] tags from the text with search & replace - Indesign(2.0.2) simply crashes when doing this. It works just fine when removing the [BOLD] tag...

Please help, its driving me nuts :-(

Thanks in advance
Martin
Technical Details
Message-ID: <1de8dffa.6@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de8dffa.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,3f638a313e6d5906
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-05-01 16:07:46 PST
From: "Martin Madsen" <info@myrealbox.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: AS changing text attributes
Message-ID: <1de8dffa.6@WebX.la2eafNXanI>
Date: Thu, 1 May 2003 15:54:00 -0700
References: <1de8dffa.-1@WebX.la2eafNXanI>
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit