Re: International Text: help !
Re: International Text: help !
- Subject: Re: International Text: help !
- From: Emmanuel <email@hidden>
- Date: Wed, 24 Jan 2001 18:04:29 +0100
At 12:33 +0100 24/01/01, FlyMac wrote:
>
"Memo hunter` this is a test! :-)"
>
Is there a way to take strings as they are and let the spaces be the only
>
delimiters ?
AppleScript's text item delimiters are what you need:
-------------------------------
set theString to "Memo hunter` this is a test! :-)"
set AppleScript's text item delimiters to " " -- space
set theWordsList to text items of theString
-- {"Memo", "hunter`", "this", "is", "a", "test!", ":-)"}
-------------------------------
If you get arrested by the TID Police, they may have you add a few lines:
-------------------------------
set theString to "Memo hunter` this is a test! :-)"
set savedTID to AppleScript's text item delimiters
set AppleScript's text item delimiters to " " -- space
set theWordsList to text items of theString
-- {"Memo", "hunter`", "this", "is", "a", "test!", ":-)"}
set AppleScript's text item delimiters to savedTID
-------------------------------
JEQCVA (HTH)
Emmanuel