• 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: Satimage's "find text" command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Satimage's "find text" command


  • Subject: Re: Satimage's "find text" command
  • From: Emmanuel <email@hidden>
  • Date: Mon, 3 May 2004 11:23:25 +0200

At 3:19 AM -0500 03/05/04, Richard Covert wrote:

>I am using Satimage's OSAX to do this.
>But, I find that I need to surround the 'find text' command with a try
>to trap out the files which DO not end with the pattern.
>
>Satimage seems to consider a non-match an error so you have to trap the
>error to process non-matches to 'find text'
>Am I missing something??

You are not missing anything: you do have to trap the error of "find text".

As you have observed, "find text" may return strings, records, lists, lists of records etc. so it's more convenient to have it trigger an error than issue a special result to mean "not found".

Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Satimage's "find text" command (From: Richard Covert <email@hidden>)

  • Prev by Date: Re: joining several data files together (aka UNIX cat in AS)
  • Next by Date: Re: Possible bug.
  • Previous by thread: Satimage's "find text" command
  • Next by thread: Re: Invoking the Finder's 'Find' window
  • Index(es):
    • Date
    • Thread