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 10:41:37 -0800
On 3/23/02 9:54 AM, "JollyRoger" <email@hidden> wrote:
>
On 3/23/2002 11:40 AM, "Paul Berkowitz" <email@hidden> wrote:
>
>
> However, it's not going to work right. The classic Finder screws up again.
>
> (It's always doing that.)
>
>
>
> At least in OS 9.2.2, AppleScript 1.8.2b3, the Finder claims there's no such
>
> folder when I move it off the desktop into another folder. If I then select
>
> it there and get the id of item 1 of the selection, it gives me the correct
>
> id. It just can't find it when I ask for it. Well, you could make THAT the
>
> basis of an error trap, I suppose, but it would be totally unreliable. I
>
> wouldn't. Yet another Finder bug. (The OS X Finder doesn't have the id
>
> property for item, so no feature, no bug. You'd have to find another method
>
> when you move there anyway.)
>
>
Where does it say that this ID should act like an alias and always point to
>
a file after the file is moved?? I'm not so sure this is a bug...
You're right, JR. My apologies to the Finder. I expected the Finder's
usually excellent 'whose' filters to work, but checking 'item element of
'application' in the Finder dictionary, it says:
item by numeric index, by name
(and similar for other elements such as folder and file). So that means
that whose filters will only work for items within a specific container,
where you can specify them by name or index, not application-wide. At least,
I wouldn't expect 'by numeric index' to work application-wide, and even if
it did, it wouldn't remain constant from one moment to the next.
I'd never thought of using id in the Finder before, and, as you may have
noticed, I suggested another way for the questioner to get what he wanted.
(In Outlook Express and Entourage, you can identify any application element,
except identities, by ID, and just get it , and its other properties,
wherever it is. It would be nice, but not very reasonable, I suppose, if you
could do the same in the Finder. But having 'alias' is good enough for me.)
Not a bug. Agreed.
--
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.