Re: Finding lines containing foo in a file
Re: Finding lines containing foo in a file
- Subject: Re: Finding lines containing foo in a file
- From: "Nigel Garvey" <email@hidden>
- Date: Thu, 22 Dec 2005 16:32:57 +0000
"Stockly, Ed" wrote on Wed, 21 Dec 2005 15:08:13 -0800:
>Not safe. One more reason to prefer pure AppleScript to shell scripting.
Yet another, of course, in the light of your original request for a
faster way to read several lines from a text file, is simply speed. A
repeated, disk-accessing shell script is virtually guaranteed to be
slower than whatever you wrote before. And if the snippet for which
you're searching isn't in the text, the shell script throws an error from
which the script has to recover, further adding to the time taken.
However, if any of the UNIX fans here know how to coax one 'grep' call
into accepting several search strings at once, without erroring on any
not found, it might still be in with a chance.
Paul Berkowitz wrote on Wed, 21 Dec 2005 12:10:11 -0800:
>Nigel is still using 'path to At Ease documents folder', as needed back in
>OS 9 and up through 10.2.x. It still works (as does the more arcane 'path
>to "docs"') , but OS 10.3 (AS 1.9.2) introduced 'path to documents folder'.
>At ease, At Ease...
Yes. Thanks, Paul, and sorry. I could have sworn I'd shortened that to
'path to desktop' when preparing my test script for mailing.
I still use 'At Ease documents folder' and 'At Ease applications folder'
myself for compatibility between my own machines. In any case, when faced
with a choice between using something that works anywhere and something
with the same effect that only works with more recent systems, I
generally tend to go for the former. However, as I said, I didn't
actually mean to mention that folder at all in my post. :-)
NG
_______________________________________________
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