Re: Coercing date to real
Re: Coercing date to real
- Subject: Re: Coercing date to real
- From: John W Baxter <email@hidden>
- Date: Thu, 7 Feb 2002 09:56:58 -0800
At 0:34 -0800 2/7/2002, Paul Berkowitz wrote:
>
On 2/6/02 11:15 PM, "email@hidden" <email@hidden> wrote:
>
>
>> Can't make date "Tuesday, April 4, 1995 11:06:00 PM" into a real.
>
> try pulling the date as the ticks (the number of seconds):
>
>
>
> set UniqueID to the ticks of checkID as real
>
>
>
You really should mention that you need to have Jon's Commands to have 'the
>
ticks'.
And that ticks are 1/60 of a second, and measured from the last
start/restart of the machine. And may very well not exist in Mac OS X (I
haven't looked...if there's a Carbon call to get them, then they exist in
X...or are manufactured on demand).
The old GTQ scripting addition collection has a command which returned the
machine's date and time as a real (I think...it's been a long time).
Doesn't help with X. But Arthur's code should (as long as you don't try to
understand it before using it ;-)).
--John
--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
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.