🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18212

Hyphen Madness

#18212
From: Jay Fraser
Date: Tue, 08 Apr 2003 22:06
14 lines
1245 bytes
I have to do a bunch of boring and repetative things to surnames. The surnames are always the first thing in a paragraph, so I can say things like:

      set applied character style of word 1 of paragraph myCounter to "Surname"




Usually my scripts work well, but sometimes I run into a hyphenated name which gums everything up.

I don't suppose there's an easy way to tell AppleScript to treat hyphens like any other character?

If not, I'll have to re-write a bunch of scripts & slow them down either further ... or just close my eyes and ignore the errors.

Jay
Technical Details
Message-ID: <1de8a78d.-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-08!supernews.com!news-out.visi.com!petbe.visi.com!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,512f4adf02827e0c,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-04-08 15:07:41 PST
From: "Jay Fraser" <jayfraser@yahoo.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Hyphen Madness
Message-ID: <1de8a78d.-1@WebX.la2eafNXanI>
Date: Tue, 8 Apr 2003 15:06:01 -0700
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit