Re: Coercing date to real
Re: Coercing date to real
- Subject: Re: Coercing date to real
- From: paulskinner <email@hidden>
- Date: Thu, 7 Feb 2002 14:20:56 -0500
On OS 10.1.2 / AS 1.8.1...
--date 0
--errors
-->can't get date 0.
As it does on a stock 9.1 OS. You must also be getting some "help" from
an OSAX.
'scripts worked yesterday
today they are broken.
Silent coercions!' -unknown
But...
--date "0"
--compiles to
--midnight of today.
-->date "Thursday, February 7, 2002 12:00:00 AM"
--date "1" compiles to
--Midnight of day 1 of this month
date "Friday, February 1, 2002 12:00:00 AM"
On Thursday, February 7, 2002, at 12:41 PM, Marc K. Myers wrote:
This is the easiest way I know to get the current date as a real:
(current date) - (get date 0).
--
Paul Skinner
_______________________________________________
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.