Re: Changed definition of word? No dashes?
Re: Changed definition of word? No dashes?
- Subject: Re: Changed definition of word? No dashes?
- From: Harald E Brandt <email@hidden>
- Date: Fri, 9 Feb 2001 22:23:25 +0100
+--> Jolly Roger wrote 01-02-08:
>
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.
+-
Thanks a lot for the hint!
It seems like something along this is what I will have to do.
More elegant, however, would be the ability so set delimiters for words.
The problem with the proposal above is that I must know exactly the number of spaces (which can vary). I would like to set a delimeter of white space.
I *really* need to get the hyphen, since it is a script capturing account info from my internet bank, and I then use those "words" to add upp my account holding, so you can imagine the chock I got when all of a sudden, no negative values were subtracted, resulting in my account showing severe negative net holding!
______heb________________________________________________________________
Harald E Brandt email@hidden PGP/MIME aware
http://heb.surf.to