• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Changed definition of word? No dashes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Changed definition of word? No dashes?
      • From: Harald E Brandt <email@hidden>
References: 
 >Re: Changed definition of word? No dashes? (From: Harald E Brandt <email@hidden>)

  • Prev by Date: Use the find command in Apple script
  • Next by Date: Re: Changed definition of word? No dashes?
  • Previous by thread: Re: Changed definition of word? No dashes?
  • Next by thread: Re: Changed definition of word? No dashes?
  • Index(es):
    • Date
    • Thread