Re: Finding folder from its id
Re: Finding folder from its id
- Subject: Re: Finding folder from its id
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 24 Mar 2002 03:56:54 -0800
On 3/24/02 3:42 AM, "Applescript User Lewis" <email@hidden>
wrote:
>
At 14:49 -0800 23/03/02, Paul Berkowitz wrote:
>
> No, not really. 'entire contents', even of a largish folder, is the most
>
> well-known and notorious Finder bug of all. It will never, ever work for a
>
> hole hard disk.
>
>
tell application "Finder"
>
get the first item of entire contents of startup disk
>
end tell
>
>
Yield >> folder "Applications" of startup disk of application "Finder"
>
>
works for me. Took a little while (a minute or two) but it worked.
Yes. it has no problem with getting the first item. It just can't get
'entire contents' of a folder with somewhere around 300 items (or a little
less). it usually just gives the wrong answer. If you have any folders with
that many items, try it.
It's really of no interest to me that it might work sometimes for you, if it
doesn't work always for everyone. It's been documented over and over again
that it doesn't. So either you realize the implications of that, or you
don't.
>
>
tell application "Finder"
>
get (the first item whose name contains "Omni") --NB
>
of entire contents of startup disk
>
end tell
>
>
timed out.
>
>
OS X 10.1.3
>
It's probably encouraging that in OS 10.1.3 that it timed out instead of
giving a false answer. That's honest. I'm not sure if anyone has had false
answers in OS 10.1.x. You'd have to test it on several more reasonably-sized
folders, not an entire OS X hard disk with more than 10,000 files. Try a
folder with 400 or 500 items. I wouldn't hold my breath.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.