whose seems broken
whose seems broken
- Subject: whose seems broken
- From: Luther Fuller <email@hidden>
- Date: Thu, 21 Aug 2008 11:15:48 -0500
I was curious, after reading comments about 'whose' filters in "I
can't get the correct syntax for this filter", if I could write a
simple script containing a simple 'whose' filter that worked. Surely I
could ... I've done it before. So I tried this ...
try
with timeout of 400 seconds
tell application "Finder"
set folderList to (get every folder of entire contents of disk "x"
whose comment is "y") as list
beep
end tell
end timeout
on error
display dialog "Time Out" buttons {"Cancel"}
end try
repeat with aFol in folderList
display dialog aFol as text
end repeat
All I got was a "Time Out". I poked it a couple of times with a sharp
stick, but still it just times out. Not even a 'beep', it just times
out.
How long would it take to do the same thing without using 'whose'? I
wrote a quickie recursive handler to scan the entire disk "x" and in
23 seconds it returned a list of 33 folders having comment "y".
'whose' and 'entire contents' have a reputation for slowness, but this
seems to indicate that they are simply broken. They don't work. They
ought to be the fastest method of filtering. They need to be fixed.
_______________________________________________
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