Re: Snippet to remove an item from a list
Re: Snippet to remove an item from a list
- Subject: Re: Snippet to remove an item from a list
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 11 Jul 2001 08:28:41 -0700
On 7/11/01 7:28 AM, "Michelle Steiner" <email@hidden> wrote:
>
On 7/10/01 11:51 PM, Paul Berkowitz <email@hidden> wrote:
>
>
> set aWord to "Saturn"
>
> set Applescript's text item delimiters to "turn"
>
> set ls to text items of aWord
>
> set Applescript's text item delimiters to "lad'
>
> set aWord to "" & ls -- with or without parsley
>
>
You're sick.
>
>
You also have a major and a minor error in your script. Here's the
>
correction:
>
>
set aWord to "Saturn"
>
set AppleScript's text item delimiters to "turn"
>
set ls to text items of aWord
>
set AppleScript's text item delimiters to "lad"
>
set aWord to "" & ls -- with or without parsley
>
set text item delimiters to ""
>
aWord
>
You're right. I stand corrected. It never pays to send in untested scripts,
even in jest. Actually it does, if the correction adds flavo(u)r, as in this
case.
--
Paul Berkowitz
-- otherwise, in good health, with my TIDs back on track