Re: Select Finder items by Regular Expression
Re: Select Finder items by Regular Expression
- Subject: Re: Select Finder items by Regular Expression
- From: Emmanuel <email@hidden>
- Date: Mon, 5 Sep 2005 21:32:08 +0200
At 9:15 AM -0700 9/5/05, Michelle Steiner wrote:
On Sep 5, 2005, at 9:01 AM, Bruce Robertson wrote:
tell application "Finder"
files of entire contents of startup disk whose name contains "Fun" and
name extension is "jpg"
end tell
Hi Michelle - I didn't realize that the Finder's built-in matching was as
quick and relatively useful as it is. Thanks for that!
FWIW not quick or useful for me. It locks up Finder and I have to force
quit. 2GHz Imac G5, 10.4.2
I think that you may need to run some disk repair utilities.
FWIW, a fast speed test with my Documents folder (running a regular
expression should be faster anyway). The result is {number of items
found, time}. Only one run each.
tell app "Finder" to [very carefully, I suppose] get files of entire contents
{4778, 29.026603000006}
tell app "Smile" to list files
{4778, 3.120385000002}
do shell script "ls -R"
{9234, 1.747416999991} [1]
Emmanuel
[1] For those who wonder, a folder is counted three times here.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden