• 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: Exact word search
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exact word search


  • Subject: Re: Exact word search
  • From: "Mark J. Reed" <email@hidden>
  • Date: Thu, 18 Sep 2008 09:44:31 -0400

On Thu, Sep 18, 2008 at 9:04 AM, Script2 <email@hidden> wrote:

> If aword contains "FINISH"
>
> Aword is a paragraph.
>
> How do I write this so it searches only upper case FINISH. Above sentence
> returns finishing, finished, Finish................

OK, two separate issues.

1) You want case to matter.  Put the test within a "considering case" block.
2) You want only the whole word to match.

Try this:

considering case
    if words of aword contain "FINISH" then
     ...
    end if
end considering
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • RE: Exact word search
      • From: "Script2" <email@hidden>
References: 
 >Re: scripting adobe illustrator cs3 (From: Shane Stanley <email@hidden>)
 >Exact word search (From: "Script2" <email@hidden>)

  • Prev by Date: Re: Illustrator position of selection
  • Next by Date: Re: Exact word search
  • Previous by thread: RE: Exact word search
  • Next by thread: RE: Exact word search
  • Index(es):
    • Date
    • Thread