Re: Changed definition of word? No dashes?
Re: Changed definition of word? No dashes?
- Subject: Re: Changed definition of word? No dashes?
- From: Jolly Roger <email@hidden>
- Date: Thu, 08 Feb 2001 17:25:25 -0600
- Replyto: email@hidden
on 2/8/2001 5:00 PM, Harald E Brandt (email@hidden) wrote:
>
I.e hyphen (that key without any modifiers) shall, according to the manual, be
>
part of the word in strings. And it WAS part of the word in earlier OS. Now,
>
however, the script above does not include it!! Is this a new bug in the new
>
AppleScript, or can I control it in any way? I have already tried to search
>
various documents on changes etc but haven't found anything.
One thing you might want to look into doing as a work-around is use
AppleScript's text item delimiters to parse text items:
set saveDelims to AppleScript's text item delimiters
set AppleScript's text item delimiters to {" "}
log item 5 of (text items of "bla bla -435,00 ")
set AppleScript's text item delimiters to saveDelims
-- "-435,00"
Obviously that's not a very good solution - depends on how desperate you
are, I guess.
JR