Re: Finder scripting bugs
Re: Finder scripting bugs
- Subject: Re: Finder scripting bugs
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 29 Aug 2009 17:47:03 -0700
- Thread-topic: Finder scripting bugs
On 8/29/09 4:35 PM, "Nigel Garvey" <email@hidden>
wrote:
> tell column id name column
>
> That's the way column references are returned in Jaguar and Tiger, so
> that might be the correct way to address them.
It's very strange. Still in Leopard here, where the same pertains.
In Script Debugger, whose display of application Dictionaries still shows
the various ways you can refer to elements of a class (the Cocoa Script
Editor no longer does so), it shows for 'columns' of 'list view options:
by index, by range, relative to others, by whose/where filter
NOT 'by name' (which is a property) and NOT 'by id' - which is not a
property.
However, the 'id' is evidently some more primal way of identifying elements.
(I know some other applications with the same - but their dictionaries will
say the the elements can be accessed 'by unique id'.) Here it is evidently
mapped to the 'name' property, and up until Leopard you could just omit the
'id' and go straight to the name. That must be a friendly coercion that has
been removed, or forgotten, in Snow Leopard. It's hard to say which one is a
bug, but at the least either 'id' should be given as a (redundant) property
in the Finder Dictionary for 'column' and whatever hidden directions that
Script Debugger reads in the sdef should allow 'by id' - or, what would be a
lot clearer, just allow accessing the column elements 'by name' as the
coercion pre-Snow Leopard permitted. Or turn the coercion on again, I guess.
But it would be preferable for the Dictionary to be accurate, and not depend
on a silent coercion.
--
Paul Berkowitz
_______________________________________________
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