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: Sat, 23 Mar 2002 14:49:26 -0800
On 3/23/02 1:56 PM, "nick weldin" <email@hidden> wrote:
>
Well at least you are getting the sort of results i am. If you direct
>
it to the folder the folder is in then it finds it! Not much use if
>
you don't know where it is already. You can search through nested
>
folders by saying
>
>
tell application "Finder"
>
get (the first item whose id = 289345) of entire
>
contents of folder "test" of startup disk
>
end tell
>
>
but if you ask it to
>
>
get (the first item whose id = 289345) of entire contents of startup disk
>
>
(which I know may be slow but should work)
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. Just forget you ever heard of it. Pretend it's not in the
Finder dictionary. It's kaput. (Usually, it just gives a faulty result and
smiles. so you're lucky that it just poops out with a whole disk's worth.)
As I explained, instead of recording the Finder id, record the file itself
'as alias' as a script property. It doesn't have to be by "choose folder" -
if you know what the file is (first time) just set a script property to it
as alias, and it will _always_ be found on the computer. Put in an error
lock in case someone trashes it.
--
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.