• 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: AppleScript-Users Digest, Vol 6, Issue 470
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript-Users Digest, Vol 6, Issue 470


  • Subject: Re: AppleScript-Users Digest, Vol 6, Issue 470
  • From: Chris Swain <email@hidden>
  • Date: Fri, 18 Sep 2009 14:46:25 +0100

From
http://homepage.mac.com/swain/Sites/Macinchem/Applescript/page2.html

"Comparing version numbers however is not so straightforward since the version number could be 2.10.3 or 2.3.10, fortunately Apple have kindly provided a simple means to compare this type of numeric strings. So using "considering numeric strings". 

e.g.

considering numeric strings
if babel_version > "2.1" is true then --> true, if you consider each numeric string to be a single "character".
display dialog "True" 
end if
end considering 


Chris


Message: 1
Date: Fri, 18 Sep 2009 06:53:30 -0400
From: Jim Weisbin <email@hidden>
Subject: Filemaker QT scripts and quicktime
To: email@hidden
Message-ID: <email@hidden">email@hidden>
Content-Type: text/plain; charset="us-ascii"

I have some Filemaker scripts which use QuickTime to play movies. I  
know FM has its own media player, and we use that as well, but we give  
users the option to either use that or QT.

The form of the scripts was this: "tell application \"QuickTime Player
\" ...

That breaks the script when running under Snow Leopard, so now I've  
changed it to:

"tell application id \"com.apple.quicktimeplayer\"

The problem with that is that it only works on 10.5 or later, but I  
still have some clients on 10.4. Therefore I need to check the  
operating system version number. I don't think there's a way to do  
that in FM. How do I do it in Applescript?


Jim Weisbin | C.T.O. | human | 138 Fifth Avenue | 3rd Floor | New  
York, NY | 10011 | + (212) 352-0211 | + (917) 375-2272
Los Angeles Office | 2046 Broadway | Santa Monica, CA | 90404 | +  
(310) 264-0211 telephone | www.humanworldwide.com


 _______________________________________________
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

  • Prev by Date: Re: JustWonedering
  • Next by Date: selecting a message in Mail
  • Previous by thread: Re: textcommands
  • Next by thread: selecting a message in Mail
  • Index(es):
    • Date
    • Thread