Re: Coerce time
Re: Coerce time
- Subject: Re: Coerce time
- From: Graff <email@hidden>
- Date: Mon, 01 Dec 2003 04:49:44 -0500
The command "short date string" is apparently part of AppleScript
1.9.2. The months being coerced into numbers is also part of
AppleScript 1.9.2.
<
http://www.apple.com/applescript/releasenotes/192OSX.html>
So yeah, it's not available to earlier versions of AppleScript. It's a
shame too, it's very useful. Ahh well, there are definite advantages
to using the latest and greatest.
- Ken
On Dec 1, 2003, at 3:57 AM, Harald E Brandt wrote:
+--> Graff wrote 03-11-30:
First of all if you want to change a long date to a short date and
you want to follow the localization for the user, do this:
---------
set myDate to date "August 20, 2003"
set myShortDate to short date string of myDate
+-------- -----------------
You have an osax somewhere! 'short date string' does not compile.
+--
set theMonth to the (month of myDate) as integer
+- ----------
Probably the same osax. '(month of myDate) as integer' will not make
it into an integer on my system.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.