Re: Re. Search for a character
Re: Re. Search for a character
- Subject: Re: Re. Search for a character
- From: "Gary (Lists)" <email@hidden>
- Date: Tue, 20 Sep 2005 13:53:44 -0400
"email@hidden" wrote:
>> Timothy K. Wilkinson wrote:
>> I just need a line that says "give me every word in this line that
>> contains a %".
>> Anyone know the syntax I would need?
>
> If you really want to use text item delimiters, one solution would be:
Or _much_ shorter:
set wordlist to {"hello", "perĪnt", "dolly"} set percentwords to {}
repeat with aword in wordlist
if (contents of aword) contains "%" then -- can be 1 line
copy (contents of aword) to end of percentwords
end if
end repeat
percentwords
-- {"perĪnt"}
--
Gary
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden