• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Finding Filenames that contain a certain string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding Filenames that contain a certain string


  • Subject: Re: Finding Filenames that contain a certain string
  • From: "Mark J. Reed" <email@hidden>
  • Date: Thu, 19 Jul 2007 19:03:11 -0400

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.

--
Mark J. Reed <email@hidden>
_______________________________________________
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
  • Follow-Ups:
    • Re: Finding Filenames that contain a certain string
      • From: Matt Deatherage <email@hidden>
    • Re: Finding Filenames that contain a certain string
      • From: "Stockly, Ed" <email@hidden>
References: 
 >Re: Finding Filenames that contain a certain string (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: Applescript Help...
  • Next by Date: Re: Finding Filenames that contain a certain string
  • Previous by thread: Re: Finding Filenames that contain a certain string
  • Next by thread: Re: Finding Filenames that contain a certain string
  • Index(es):
    • Date
    • Thread