Author Topic: OS X version bug in WC Status Growler  (Read 2938 times)

elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6494
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
OS X version bug in WC Status Growler
« 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]

Steve

  • Global Moderator
  • Storm
  • *****
  • Posts: 1558
    • DW8454
    • KOHAVON11
    • Avon Weather
  • Station Details: Davis Wireless VP2 Plus w/24 hr FARS, Leaf & Soil Station, 2023 Mac mini M2 Pro, 32GB RAM, Mac OS 14, WeatherCat 3.2
Re: OS X version bug in WC Status Growler
« Reply #1 on: October 14, 2014, 04:04:20 AM »
Works just fine!

Thanks,
Steve
Steve - Avon, Ohio, USA


CWOP: DW8454 - WU: KOHAVON11 - AWEKAS - CoCoRaHS
PWSweather - WeatherCloud - Twitter - Facebook

elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6494
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
Thanks! (Re: OS X version bug in WC Status Growler )
« Reply #2 on: October 14, 2014, 10:13:39 PM »
Hi Steve and WeatherCat scripters,

Works just fine!

Glad to hear it!  [tup]

Cheers, Edouard  [cheers1]

Randall75

  • Storm
  • *****
  • Posts: 1332
  • CWOP-CW6734 WeatherUnderground-KOHNEWAR6
    • CW6734
    • KOHNEWAR6
    • Randy's Weather On The Hill
  • Station Details: Davis Vantage Pro 2 Plus.iMac i5 OS High Sierra 10.13.6 8GB Ram, WeatherCat 3,Logitech 9000 Pro Web Cam
Re: OS X version bug in WC Status Growler
« Reply #3 on: October 15, 2014, 01:16:53 AM »
Hi Edouard
 It is working as you stated
thanks for getting corrected


cheers


 [cheers1]

gioman

  • Gentle Breeze
  • **
  • Posts: 11
    • CW8735
    • KNCHENDE18
  • Station Details: vantage Pro2
Re: OS X version bug in WC Status Growler
« Reply #4 on: October 28, 2015, 02:23:20 PM »
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

Randall75

  • Storm
  • *****
  • Posts: 1332
  • CWOP-CW6734 WeatherUnderground-KOHNEWAR6
    • CW6734
    • KOHNEWAR6
    • Randy's Weather On The Hill
  • Station Details: Davis Vantage Pro 2 Plus.iMac i5 OS High Sierra 10.13.6 8GB Ram, WeatherCat 3,Logitech 9000 Pro Web Cam
Re: OS X version bug in WC Status Growler
« Reply #5 on: October 28, 2015, 03:05:51 PM »
Hi Edouard and Keith
 I upgraded to 10.11.1 and WC Status Growler is still working for me iMac i5


cheers


 [cheers1]