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: Bill Briggs <email@hidden>
- Date: Fri, 20 Jul 2007 15:21:30 -0300
At 1:35 PM -0400 7/20/07, Mark J. Reed wrote:
>I don't see how either the ongoing changes in English usage or the
>internationality or Englishness (alleged or actual) of AppleScript's
>syntax is relevant here.
It may not be. It's just that when I see expressions like that used incorrectly it makes the hair on the back of my neck stand up. To get the hair to do down again (so I don't look like a frightened cat) I have to say something. And it's Friday afternoon, so we should relax as the weekend is almost upon us.
> At issue, beyond the problem raised by the OP, is the appropriateness or in- of "do shelll script"-based solutions on this list.
I'm all for "do shell script". Heck, I normally don't bother with the AppleScript wrapper to use the shell (partly because I have the environment in bash tweaked in ways that the environment in sh isn't, so AppleScript doesn't always give the exact same result - and I hate having to sort out all the time what needs escaping and what doesn't). Terminal tools are just too powerful and too fast to ignore.
I write AppleScripts to do things for me nearly every day of life, but as you know, it's certainly not always the best way to do things. Not by a long stretch. And I don't know why folks get exercised about using the power of the shell tools we have available. (Ed? I would have thought you'd embrace this kind of capability.)
For example, I recently saw a thread on MacScripter discussing a way to code arithmetic operations as you would do them by hand (to achieve arbitrary precision integer calculations). Well, as a coding exercise that's great, but as a useful tool, why would you bother. You've got bc on your Mac that already does this at a speed that AppleScript can't even hope to match. And you can write your own function libraries for it.
So in this discussion I'm in the camp that often goes "shell". Can't help it. In the end I want to do what I need to do with the least amount of time at the keyboard, and frequently that means leaving AppleScript to use Terminal.
- web
_______________________________________________
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