• 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
Return Current OS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Return Current OS


  • Subject: Return Current OS
  • From: "Sgt. Pepper" <email@hidden>
  • Date: Wed, 20 Nov 2002 08:09:23 -0800

Hello,
Can someone please help me with this syntax. I am writing a script in which I need to determine the OS of the mac that the script is running. I have tried everything I could think of and all I was able to do was to get Apple System Profiler to return a Unicode Text Doc. Here's a brief example of what I'm looking to do:

tell some app
get current OS
if result is "10.x" then
do OS X stuff
else
do OS 9 stuff
end if
end tell

My apologies if this has already been addressed but I have searched through past posts and can't find a thread concerning this.

---
Thanks!

Live the Dream!
__________________________

Kevin Dolan
Pixxon Imaging Studios
2055 Bryant Street
San Francisco, CA 94110
(415) 641-5407
www.pixxon.com
_______________________________________________
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: Return Current OS
      • From: Gary <email@hidden>
    • Re: Return Current OS
      • From: Doug McNutt <email@hidden>
    • Re: Return Current OS
      • From: David Glass <email@hidden>
  • Prev by Date: Script Editor Alternative?
  • Next by Date: Just curious
  • Previous by thread: Re: Script Editor Alternative?
  • Next by thread: Re: Return Current OS
  • Index(es):
    • Date
    • Thread