Re: OS version questions
Re: OS version questions
- Subject: Re: OS version questions
- From: Christopher Nebel <email@hidden>
- Date: Fri, 18 Jul 2003 17:18:52 -0700
On Friday, July 18, 2003, at 10:16 AM, Dave Miller wrote:
Can anyone tell me if it is possible to have a single script run as a
stand-alone application on OS 8.x, 9.x and OS X?
Script Editor 1.7 and later will save applets in a form that will run
on any Mac OS that has AppleScript. Just save as "application", don't
check "Require Classic", and there you are.
If so, is there a way that the script can detect which OS it is
running on?
See Rob Jorgensen's response. The business end is the "system
attribute" command (formerly the Finder's "computer" command) with a
parameter of "sysv". That gets you the system version encoded as a
number; converting to a string like "10.2.6" takes a bit of math.
--Chris Nebel
Apple Development Tools
_______________________________________________
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.