Re: Localized Internals of AppleScript (date Class for example)
Re: Localized Internals of AppleScript (date Class for example)
- Subject: Re: Localized Internals of AppleScript (date Class for example)
- From: Emile Schwarz <email@hidden>
- Date: Fri, 15 Apr 2005 17:46:50 +0200
Hi has et. al,
email@hidden wrote:
Date: Fri, 15 Apr 2005 11:18:17 +0100 From: has <email@hidden> Subject: Re: Localized Internals of AppleScript (date Class for example) To: email@hidden Message-ID: <a05200f05be8542e07063@[82.3.245.65]> Content-Type: text/plain; charset="us-ascii" Emile Schwarz wrote:
set Now to date "jeudi 14 avril 2005 0:00:00"
return weekday of Now
The returned string is: Thursday.
That's not a string, it's a constant. Constants are language constructs and do not change, otherwise they wouldn't be 'constants'.
Ok, I mis-wrote that part:
The returned constant is: Thursday
This is a question: How can I get the Date part of a Date Class Instance ?
The Language Reference states:
<quote>
Property: Date
Description: A string that consists of the date portion of the date value; for example,"June 3, 1993".
</quote>
Dunno where you got that from; the correct definition from ASLG 1.3.7 is:
Date String
A string that consists of the date portion of the date value; for example, "Saturday, February 27, 1999".
OK, why not... but the text I wrote between <quote></quote> came from the pdf
(copy / paste); I only added 'Property:' and 'Description:' to make the quote
contents obvious.
The AppleScript Language Reference pdf I use date from 1996; however, i have to
say that it have been downloaded on April 2nd, 2005 (!) and I have another one
that was donwloaded on December 2002...
The screen shots show Mac OS 9 style windows...
There is a difference between the way to set the date (French) and the way to
get the date constants back (English) and I do that in the same script, a two
lines script.
Of course, I do not use Mac OS X like the domestic users do: I use the French
language thus French setting, but why the US constants ?
If the Language is able to do one part why not the second part ?
Emile
I hope a better AS in Tiger.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden