Re: Finding Filenames that contain a certain string
Re: Finding Filenames that contain a certain string
- Subject: Re: Finding Filenames that contain a certain string
- From: "J. Stewart" <email@hidden>
- Date: Fri, 20 Jul 2007 05:02:01 -0400
On 7/20/07 at 3:46 AM, Philip Aker <email@hidden> spake thusly:
Is there a users list that uses shell scripting to solve all
these problems?
This is it. Since AppleScript implements 'do shell script',
anything that it can spawn is legal chat on this list. In fact
there's even a Technical Note (#2065) which shows the use of
several standard shell commands successfully.
The discussion of "vanilla Applescript" versus using an osax or
other source is usually pretty silly. Someone will post their
"vanilla" Applescript script and the first thing it contains
will be a call to StandardAdditions or to some application,
that's no longer vanilla.
For example, some folks post gobs of code munging "current date"
via "vanilla" Applescript when they could get the same thing
with 1 line calling do shell script. They forget that calling
Standard additions for current date is not really any different
than calling it for do shell script.
There are times when shell scripting is the best, shortest, most
maintainable method. It is available on every OS X using Mac as
it is supplied by Apple. By the usual criteria, that makes it vanilla.
John
--
The Sufis advise us to speak only after our words have managed
to pass through three gates. At the first gate, we ask
ouselves, 'Are these words true?' If so, we let them pass on;
if not, back they go. At the second gate, we ask, 'Are they
necessary?' At the last gate, we ask, 'Are they kind?'
-Eknath Easwaran
_______________________________________________
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