Re: UniqueID
Re: UniqueID
- Subject: Re: UniqueID
- From: Arthur J Knapp <email@hidden>
- Date: Thu, 07 Feb 2002 09:58:31 -0500
>
Subject: Re: UniqueID
>
Date: Wed, 6 Feb 2002 07:51:24 -0700
>
From: Michelle Steiner <email@hidden>
>
On 2/5/02 10:55 PM, Chris Wood <email@hidden> wrote:
>
> tell application "Finder" to set checkID to (creation date of startup disk)
>
> set checkID to checkID as real
>
Do you have an OSAX that changes a date to a real? I get an error on
>
this line.
Who needs an OSAX? ;-)
-- Safe way:
--
property kEra : date ("" & "1-1-1904")
on DateToSeconds(d)
return (d - kEra)
end DateToSeconds
-- Cool way, (I can't help myself):
--
on DateToSeconds(d)
set s to {{p:d}} as string
set i to s's text 1 thru -17
set j to "comp"
set k to s's text -12 thru -1
return p of ((i & j & k) as record)
end DateToSeconds
{ Arthur J. Knapp, of <
http://www.STELLARViSIONs.com>
<
mailto:email@hidden>
try
<
http://www.lazerware.com/>
on error number -128
end try
}
_______________________________________________
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.