Re: Selection (was Re: Better Open Dictionary)
Re: Selection (was Re: Better Open Dictionary)
- Subject: Re: Selection (was Re: Better Open Dictionary)
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 06 Mar 2003 13:39:32 -0800
On 3/6/03 12:31 PM, "John Delacour" <email@hidden> wrote:
>
At 7:13 pm +0000 6/3/03, has wrote:
>
>
>
> So aside from the bugs I listed last time, 'selection' seems to be
>
> working exactly as advertised. It's not a Standard Suite class..
>
>
>
Come come! It's always been in the Standard Suite and a property of
>
windows, documents and the application.
But different applications seem to be allowed to implement different events
and classes from the Standard Suite at will. As far as the 'application'
class is concerned, applications seem totally free to adopt their own
properties and elements of 'application' There not really much "standard"
about any of them except 'name'. (I've always found it somewhat anomalous
that 'application' is up here in Standard Suite rather than in the app's own
custom suite, but it does make sense with the object-oriented nature of
AppleScript in mind. It ensures that there _is_ an application class at the
very least.
Since (pre-Cocoa) traditional implementations have only one entry for
'application', namely up in the Standard Suite, all the custom properties
are listed here too. Very few have 'text item delimiters' listed as you show
here, for example - I've never seen it before. Not all that many apps have
'selection', and some apps define it very minimally, others with a lot more
properties. (Usually in a separate 'selection-object' class definition.)
I'm not sure how "standard" the definitions of properties in the application
object are meant to be, in other words. I think apps are quite free to add
their own properties, so defining 'selection' as a record should be quite in
order. In Outlook Express and Entourage, for example, selection may be
either text or a list (of contacts, messages, events, etc.) or even the
'folder' object. Why not a record, if that's how TextEdit wants to define
it? Then you should just need to look at a good dictionary, or try it out,
to discover that its the 'contents' property you need to get the text.
--
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.