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: Nigel Garvey <email@hidden>
- Date: Mon, 4 Dec 2000 02:11:53 +0000
"Jason W. Bruce" wrote on Sun, 03 Dec 2000 10:18:18 -0600:
>
> Date: Sat, 2 Dec 2000 14:00:03 -0300
>
> To: <email@hidden>
>
> From: Bill Briggs <email@hidden>
>
> Subject: Re: Month as Integer (or he's ranting again)
>
>
>
> At 1:25 AM -0800 01/12/00, Richard 23 wrote:
>
>>1. There's no such thing as a constant in AppleScript, although there
>
>> are read only properties, of which the months are neither.
>
>
>
> Sorry, but that's just plain wrong. Check your result window after
>
running..
>
>
>
> get pi
>
>
>
> - web
>
>
But Richard23 is saying that you can reassign any label (even one designated
>
as a constant), e.g.,
>
>
set pi to 4
>
get pi
>
>
result: 4.
Not *any* "constant". You *can't* reassign values to months (Richard's
implication that you can is what kicked off this sub-thread), nor to
booleans or weekdays. Attempts to do so won't even compile (OS 8.6,
Script Editor). These constants are, in fact, constant.
"Constants" such as pi, tab, days, [etc.] seem to be scriptwide
properties with default, compile time values.
set pi to 4
get pi
--> 4
Comment out the first line and recompile:
-- set pi to 4
get pi
--> 3.14159265359
NG