Re: Efficiently searching for file name
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.