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

Re: Permitting a script to only run on OS X Yosemite


  • Subject: Re: Permitting a script to only run on OS X Yosemite
  • From: Chris Page <email@hidden>
  • Date: Fri, 16 Jan 2015 04:52:25 -0800


On Jan 4, 2015, at 11:53 PM, Daniel Chavez <email@hidden> wrote:

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 are you running the script? If it's an applet, you can put a "minimum required OS version" value in the Info.plist and the system will display an alert and refuse to open it:

LSMinimumSystemVersion
https://developer.apple.com/library/mac/documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html#//apple_ref/doc/uid/TP40009250-SW5

-- 
Chris Page
The other, other AppleScript Chris

 _______________________________________________
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

References: 
 >Permitting a script to only run on OS X Yosemite (From: Daniel Chavez <email@hidden>)

  • Prev by Date: Re: Yosemite and activate failures
  • Next by Date: Re: Run script with arguments
  • Previous by thread: Re: Permitting a script to only run on OS X Yosemite
  • Next by thread: Re: Permitting a script to only run on OS X Yosemite
  • Index(es):
    • Date
    • Thread