Trixology
WeatherCat => WeatherCat Integration => Topic started by: elagache on October 12, 2014, 10:12:50 PM
-
Dear WeatherCat AppleScript fans,
Randall noticed that my WC Status Growler AppleScript wasn't reported the correct version of OS X. I thought the error was Apple's but alas, it turned to be my mistake. I was using the version of the Finder instead of the actual version of the system. I posted a question on the MacScripters forum and got a "mor' better" way to look up the OS X version number. If I can ever pry free enough time, I'll release an update to my AppleScripts. However, if you want to get around this bug in a hurry, it is a easy thing for you to fix yourself. Open up WC Status Growler in the AppleScript Editor and find this snippet of code:
on getOSXversion()
-- - - - - -
-- Function to query Finder for version of OS-X
-- running on Mac
-- - - - - -
local OSXversion
tell application "Finder"
set OSXversion to version
end tell
return (OSXversion)
end getOSXversion
The fastest way to find it is to search for the text: on getOSXversion(). Once you've found it, replace it with this function:
on getOSXversion()
-- - - - - -
-- Function to query Finder for version of OS-X
-- running on Mac
-- - - - - -
local OSXversion
set OSXversion to system version of (system info)
return (OSXversion)
end getOSXversion
With that change WC Status Growler won't be fooled when Apple changes the system version number but not the Finder.
Cheers, Edouard [cheers1]
-
Works just fine!
Thanks,
Steve
-
Hi Steve and WeatherCat scripters,
Works just fine!
Glad to hear it! [tup]
Cheers, Edouard [cheers1]
-
Hi Edouard
It is working as you stated
thanks for getting corrected
cheers
[cheers1]
-
Hello Edouard,
Thanks to a system update OSX10.11.1 last night I lost your very helpful script, WC status Growler. :( I have never used these silly smileys before but without the Status Growler this silly symbol is very appropriate.
Any ideas on how to get this script to work again. Using the option key as someone mentioned a couple of years ago does not work.
Thanks heaps.
keith
-
Hi Edouard and Keith
I upgraded to 10.11.1 and WC Status Growler is still working for me iMac i5
cheers
[cheers1]