• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UniqueID
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: UniqueID
      • From: Jon Pugh <email@hidden>
  • Prev by Date: Re: Current date and future date
  • Next by Date: OS X Mail app bug? Can't get 'date received'
  • Previous by thread: Re: UniqueID
  • Next by thread: Re: UniqueID
  • Index(es):
    • Date
    • Thread