Re: MacScripter's Magazine #5
Re: MacScripter's Magazine #5
- Subject: Re: MacScripter's Magazine #5
- From: Arthur J Knapp <email@hidden>
- Date: Tue, 29 May 2001 09:57:49 -0400
>
Date: Fri, 25 May 2001 18:42:28 +0200
>
Subject: MacScripter's Magazine #5
>
From: altenburg <email@hidden>
>
Vittorio and I are happy to announce that the Spring 2001 Issue of
>
MacScripter's Magazine is available!
This is a truely great issue. :)
The completeness of your coverage of working with date and time is
just fantastic, and integrating that tutorial with a database
tutorial is very clever.
>
Macscripter.net, a the great resource for applescripters:
>
http://macscripter.net/Magazine.html
I have a query:
On the page "Referring to an item", the statement
set x to the weekday of the current date
is seen to produce a 3-letter abbreviation for the weekday. You then
state that using the coercion, "as string", will produce the full
weekday name.
On my system, (9.1/OS X), I only get the full weekday name. Does
anyone know why this is?
It is also interesting to note that at the Language Guide,
<
http://developer.apple.com/techpubs/macos8/InterproCom/AppleScriptScripters
/AppleScriptLangGuide/> , they define weekday as:
"One of the constants Monday, Tuesday, " ... "or Mon, Tue, " ...
but when I attempt to use a 3-letter abbreviation, I get a runtime
error:
set testDate to current date
weekday of testDate
-- > Tuesday
set weekday of testDate to Sun
-- execution error : "The variable Sun is not defined."
So it would seem that MacScripter team can work with 3-letter
abbreviations, while I can't. Is this a localization problem,
a version problem, or something else?
Arthur J. Knapp
http://www.stellarvisions.com
mailto:email@hidden
Hey, check out:
http://www.latenightsw.com/freeware/JavaScriptOSA/