Re: Installer script
Re: Installer script
- Subject: Re: Installer script
- From: Philip Aker <email@hidden>
- Date: Sun, 01 Sep 2002 07:07:02 -0700
On Saturday, August 31, 2002, at 07:11 PM, phildobbin wrote:
I'm trying to create an installer script to be run from a CD where an
applet checks for which system is the start-up disk. Below is an
example I've managed to get to work to check OS X volumes (apres 10.2)
but I'm stuck for a OS 8.6 -> 9.2.x version of the same.
--Try this:
on NumVersion(theNumber)
--NB: Doesn't account for release status
set temp to (theNumber mod 256)
set vers_major to (theNumber - temp) div 256
set {vers_minor, vers_update} to {(temp div 16), (temp mod 16)}
return {vers_major, vers_minor, vers_update}
end NumVersion
--
on GetSystemVersion(theNumber)
-- NB: MacOS versioning mechanism started in System 6?
set sysv to NumVersion(theNumber)
set major to ((item 1 of sysv) div 4)
return "" & (major + 6) & "." & item 2 of sysv & "." & item 3 of sysv
end GetSystemVersion
GetSystemVersion(system attribute "sysv")
Philip Aker
http://www.aker.ca
_______________________________________________
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.