• 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
Permitting a script to only run on OS X Yosemite
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Permitting a script to only run on OS X Yosemite


  • Subject: Permitting a script to only run on OS X Yosemite
  • From: Daniel Chavez <email@hidden>
  • Date: Mon, 05 Jan 2015 01:53:15 -0600

Hi list members,
I am new to apple scripting and was wondering how can I get a script to only run on OS X Yosemite?
Right now, my script runs on on everything; from OS X 10.8 to 10.9.
But I want to be able to tell the user that my script should only run if they have Yosemite.
I tried 
considering numeric strings
set _newEnough to _versionString ≥ “10.10.1"
end considering
I get the error
The variable _versionString is not defined.
Pretty much what I want is to check the OS version. If it’s 10.10.1, it will run, otherwise, it should display that the script can run only on Yosemite then exit out.
How best can I achieve this?
P.S.: I am writing these scripts using OS X 10.9.5.
Thanks for any help.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Permitting a script to only run on OS X Yosemite
      • From: Chris Page <email@hidden>
    • Re: Permitting a script to only run on OS X Yosemite
      • From: Brian Christmas <email@hidden>
  • Prev by Date: Re: Script that "Tells" Finder just Focuses on Finder instead of running
  • Next by Date: Re: Permitting a script to only run on OS X Yosemite
  • Previous by thread: Re: Script that "Tells" Finder just Focuses on Finder instead of running
  • Next by thread: Re: Permitting a script to only run on OS X Yosemite
  • Index(es):
    • Date
    • Thread