Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Get Automator working again in iTunes 10' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Get Automator working again in iTunes 10
Authored by: DougAdams on Sep 03, '10 07:45:02AM

This version string problem affects AppleScripts running with iTunes 10 as well. A script that attempts to compare iTunes 10's version string, "10.0", to a specific version, say "4.0.1", will fail because "10.0" is not greater than "4.0.1". At least, as far as AppleScript is concerned. (I have been updating scripts at my site in this regard; mostly just yanking the version check routines.)

---
Doug's AppleScripts for iTunes
dougscripts.com



[ Reply to This | # ]
Get Automator working again in iTunes 10
Authored by: CaptnEvilStomper on Sep 03, '10 01:28:39PM
Just out of curiosity, why couldn't you just test the version number as a number instead of a string? For example:
tell application "iTunes"
    if version as number < 4.9 then
        display dialog "This AppleScript requires iTunes 4.9 or better." buttons {"Cancel"} default button "Cancel"
    end if
end tell


[ Reply to This | # ]