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: "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