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: "Marc K. Myers" <email@hidden>
- Date: Sat, 02 Dec 2000 11:58:22 -0500
- Organization: [very little]
Richard 23 wrote:
>
Subject: Re: Month as Integer (or he's ranting again)
>
Date: Fri, 1 Dec 2000 01:25:21 -0800
>
From: Richard 23 <email@hidden>
>
To: <email@hidden>
>
>
on log theMsg
>
continue log theMsg
>
theMsg as list as item -- this allows me to label values
>
-- for log messages, and strip the label before returning
>
end log
What does the "as item" do in this construction? This whole redefinition
of "log" is a great idea and I want to understand it, but I get the same
results with "as item" or without it. I don't find "item" as a value
class in the AppleScript Language Guide, but the compiler accepts it as
a coercion so it must be a value class and not just an element of the
list value class. Or is it?
>
1. There's no such thing as a constant in AppleScript, although there
>
are read only properties, of which the months are neither.
I don't understand this. There IS a value class "Constant" defined in
the Language Guide. If they're not constants, what are those annoying
things the Language Guide refers to as "constants" and which won't
coerce into strings? (months, days of the week, true, false, yes, no,
ask, etc.) Is there some difference in this regard between AS 1.1.2
(which I'm using) and the more recent versions?
I'm finding this discussion to be fascinating!
Marc [12/2/00 11:58:15 AM]