• 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: Efficiently searching for file name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Efficiently searching for file name


  • Subject: Re: Efficiently searching for file name
  • From: Brian Redman <email@hidden>
  • Date: Mon, 7 Oct 2002 17:19:38 -0400

You can use 'find /System -name 'Burgundy.* || true' if you want to spare the cat pain.
Don't hold me on the applescript quoting conventions.

/usr/bin/true always returns 0

ber

On Monday, October 7, 2002, at 10:19 AM, bill fancher wrote:

There's one hitch in AppleScript: find returns non-zero when it gets errors along the way. The do shell script command looks at the return value of the expression, and based on that, decides whether to display an error. If the return value is 0, there's no error and it just copies standard out to the result. If the return value is non-zero, it displays an error with standard output, or, if that's empty, standard error as the error message (or maybe it tries standard error first, I didn't check). The upshot is that if you try to search where you're not allowed to, your valid search results are displayed as an error message.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Efficiently searching for file name
      • From: John Delacour <email@hidden>
References: 
 >Re: Efficiently searching for file name (From: bill fancher <email@hidden>)

  • Prev by Date: Re: Is it possible to set up an 'instant' idle handler
  • Next by Date: Re: OT top <rant>
  • Previous by thread: Re: Efficiently searching for file name
  • Next by thread: Re: Efficiently searching for file name
  • Index(es):
    • Date
    • Thread