• 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: Re. Search for a character
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re. Search for a character (From: email@hidden)

  • Prev by Date: File Order Processing Question
  • Next by Date: OS 9 TCP/IP configuration
  • Previous by thread: Re. Search for a character
  • Next by thread: File Order Processing Question
  • Index(es):
    • Date
    • Thread