Re: Month as Integer (or he's ranting again)
Re: Month as Integer (or he's ranting again)
- Subject: Re: Month as Integer (or he's ranting again)
- From: Emmanuel <email@hidden>
- Date: Sat, 2 Dec 2000 23:50:43 +0100
At 19:15 +0100 2/12/00, Bill Briggs wrote:
>
It's an umbrella that includes objects or values of different
>
classes. In the Finder you can easily see how "item" is a catch-all.
>
Assuming you have 10 items on your desktop, just run this in Script
>
Editor with the event log open and observe what is returned.
>
>
[snip]
>
>
In other contexts "item" includes other things. In a list, the
>
particular "item" has a class of whatever it happens to be; string,
>
integer, real, alias, etc.
>
>
[snip]
Maybe we could be a bit more specific here.
"item" is declared as a class, both in Finder's dictionary and in
AppleScript's dictionary.
As for Finder, 'item' is the common parent class of three classes: 'file',
'package' and 'container' (classes which in turn are parents of more
specific classes such as 'alias file' etc.).
As for AppleScript, item is just anything:
-------------------
Class item : An item of any type
Plural form:
items
Properties:
id integer -- the unique ID number of this object
-------------------
and is mainly used as the reserved term for the elements of a list.
Emmanuel