• 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: if statement
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: if statement


  • Subject: Re: if statement
  • From: g3pb <email@hidden>
  • Date: Fri, 16 Feb 2001 12:40:11 -0900

tell application "Finder" to set thisVersion to version
if thisVersion is "9.1" then
-- do stuff
else if thisVersion is "8.6" then
-- do different stuff
else
say "were are out of here"
end if


-- hcir
mailto:email@hidden
Made with a Mac!


>
> How can I set apple script to use an "if" statement to check if the version
> of an specific operating system lets say 8.6 is active or "true" then
> proceed to run any command, else if the operating system is, lets say 9.1,
> then proceed to run any command. I just need to know how to specify the
> operating system in use in an if statement through AppleScript.


References: 
 >if statement (From: "Braulio Gonzales" <email@hidden>)

  • Prev by Date: Re: re posting scripts
  • Next by Date: Re: Admin: a suggestion on the script corruption problem.
  • Previous by thread: if statement
  • Next by thread: Re: if statement
  • Index(es):
    • Date
    • Thread