• 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: Fri, 20 Jul 2007 07:01:09 -0400

On 7/20/07, Nick Hearn <email@hidden> wrote:
I posted this the other week, would this not do the trick?

tell application "Finder" to set theFileList to (files of entire
contents of (choose folder) whose name contains theSearchString) as
alias list

For the general case implied by the subject, sure. For the specific request, no. As I've said at least thrice now, that sort of thing works fine if all you want to do is check for a constant string match. And it is certainly possible that such is all the OP needs. But if you need to do a pattern match, allowing any of an entire class of substrings, then "vanilla" AS offers only relatively clunky solutions.

--
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
References: 
 >RE: Finding Filenames that contain a certain string (From: "Nick Hearn" <email@hidden>)

  • Prev by Date: Re: Choose from list goes out of screen range
  • 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