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: "Stockly, Ed" <email@hidden>
- Date: Thu, 19 Jul 2007 16:47:32 -0700
- Thread-topic: Finding Filenames that contain a certain string
The specific task the OP requested help with can be resolved faster and
better with plain vanilla AppleScript.
Since this is the AppleScript users list I think it's perfectly reasonable
to recommend AppleScript solutions. Not everyone has learned shell scripting
or uses "do shell script" or wants to or needs to. I think appleScript
novices may be getting misleading information if every simple scripting
question is answered with only shell scripting solutions.
There is a purpose behind and benefit from AppleScript's English-like syntax
and its easily understood language.
ES
On 7/19/07 4:03 p.m, "Mark J. Reed" wrote:
> On 7/12/07, Stockly, Ed <email@hidden> wrote:
>> No need for a shell script here. Plain vanilla appleScript works just fine,
>> and may even be faster.
>
> It's that expressiveness thing again. Having to list out all 26
> possible prefixes strikes me as clunky, to say the list. Now if all
> the OP needs is really ` name of file starts with "l325010" ', then
> doing a loop and a check with vanilla AS is reasonable. But if it
> really does need to worry about excluding files that start with
> l325010 followed by something other than a lowercase letter, the brute
> force approach starts to get untenable pretty fast. So I would do it
> with the shell, but the Satimage OSAX also has regex capabilities that
> are more than equal to the task. I just don't think vanilla
> AppleScript is the right tool here.
_______________________________________________
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