Article View: adobe.scripting.indesign
Article #18232Re: Hyphen Madness
From: Jay Fraser
Date: Wed, 09 Apr 2003 18:05
Date: Wed, 09 Apr 2003 18:05
13 lines
1473 bytes
1473 bytes
"I'm afraid I can't do that ... Dave" Sorry -- with all the buzz about the 35th anniversary of the movie "2001," I couldn't resist. [Grin] What I'm doing is comparing the first word of each para w/ the 1st word of the previous para. If they are the same, the script performs one action; if they are different it does something else. I get into trouble because the script thinks that "Williams Andy" is the same as "Williams-Sonoma." I did find something interesting, though; Applescript treats hypens as a normal character, i.e. "Dust Bunnies" is 2 words, but "Dust-bunnies" is one. I might have to do battle w/ our old nemesis, "Object Reference." Thanks! 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-03!sn-xit-01!sn-xit-08!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de8a78d.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,512f4adf02827e0c X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-04-09 11:10:30 PST From: "Jay Fraser" <jayfraser@yahoo.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Hyphen Madness Message-ID: <1de8a78d.1@WebX.la2eafNXanI> Date: Wed, 9 Apr 2003 11:05:18 -0700 References: <1de8a78d.-1@WebX.la2eafNXanI> Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit