• 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: OS version questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: (no subject) (From: Erik Gilchrist <email@hidden>)
 >OS version questions (From: "Dave Miller" <email@hidden>)

  • Prev by Date: Re: Ethan's kneecaps
  • Next by Date: Re: Ethan Rips, your autoreply gone renegade!
  • Previous by thread: Re: OS version questions
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread