Author Topic: OSXversion$  (Read 3622 times)

Steve

  • Global Moderator
  • Storm
  • *****
  • Posts: 1289
    • DW8454
    • KOHAVON11
    • Avon Weather
  • Station Details: Davis Wireless VP2 Plus w/24 hr FARS, Leaf & Soil Station, 2017 27" iMac 3.8 GHz i5, 40GB RAM, Mac OS 10.14, WeatherCat 3
Re: Coming from different sources (Re: OSXversion$)
« Reply #15 on: July 22, 2016, 03:49:11 PM »
Somebody at Apple simple goofed on something really basic.

Nope. As I said, mine works fine, so something is screwy with Randall's script. On a few occasions, I've had the AppleScript Tag Processor script or Status Growler script quit on me and not be able to relaunch. In those cases, I've had to download the original script, and save it as a new script application to get it to run. Maybe something similar has occurred for you, Randall.
Steve - Avon, Ohio, USA


CWOP: DW8454 • WU: KOHAVON11 • AWEKAS • CoCoRaHS • Skywarn •  UK Met Office
MWWN •PWSweather • WeatherBug • WeatherCloud • Twitter • Facebook

Randall75

  • Storm
  • *****
  • Posts: 1205
  • CWOP-CW6734 WeatherUnderground-KOHNEWAR6
    • CW6734
    • KOHNEWAR6
    • Randy's Weather On The Hill
  • Station Details: Davis Vantage Pro 2 Plus.iMac i5 Sierra 10.12.6 8GB Ram, WeatherCat 3,Logitech 9000 Pro Web Cam
Re: OSXversion$
« Reply #16 on: July 22, 2016, 04:47:17 PM »
Hi Steve
 I've tried that every things works except the OSXversion$ tag it is stuck on 10.11.4
I am running a 2011 iMac 21.5" i5 core 8 megs of ram 10.11.6 so for now I opened it console html and removed the tag and just inserted 10.11.6 to get it to show up correctly on my web site


thanks for the suggestion


cheers


 [cheers1]



xairbusdriver

  • Storm
  • *****
  • Posts: 2199
    • EW7115 (E7115)
    • KTNGERMA20
    • Mid-South Weather
  • Station Details: Davis VP2 wireless + remote Anemometer/2014 Mac min - 10.13.4/WC 3.0
Re: OSXversion$
« Reply #17 on: July 22, 2016, 07:22:35 PM »
Randall,

Did you try running just the script Edouard posted (#13)? [banghead] It didn't work for me, but it seems to be working for some. Strange. :o

awilltx

  • Guest
Re: OSXversion$
« Reply #18 on: July 22, 2016, 08:19:24 PM »
If you just want to test the value, open Script Editor, paste this code


Code: [Select]


set OSXversion to system version of (system info)
 return (OSXversion)


And run. It should return the correct value.


Alan

elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 5002
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, MacBook Pro (Early 2011), macOS 10.13.6, WeatherCat 3
Need one more line to stand alone (Re: OSXversion$)
« Reply #19 on: July 22, 2016, 08:22:11 PM »
Dear X-Air, Randall, Alan and WeatherCat scripters,

I am assuming the script can run independently.

Unfortunately no you could not assume that.  I just grabbed the function out of the WC Status Growler script to show the method I used.  However, if you want to run it as a stand alone script this will work:

Code: [Select]
getOSXversion()

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

When I run it in the script editor is gives me the correct version since I'm still running Yosemite.

So what do you guys get on El Capitan?

Cheers, Edouard

xairbusdriver

  • Storm
  • *****
  • Posts: 2199
    • EW7115 (E7115)
    • KTNGERMA20
    • Mid-South Weather
  • Station Details: Davis VP2 wireless + remote Anemometer/2014 Mac min - 10.13.4/WC 3.0
Re: OSXversion$
« Reply #20 on: July 22, 2016, 08:39:24 PM »
I will confirm that Edouard's second script does work. The original script in post #13 lacked the "getOSXverion()" function call, so the next line would always be null/0/invalid. That still leaves Randall with an inop script. If he can get the modified script to run or even the short version, I'd say he's suffering from a non-operational/non-running script for some reason. I only use one AS and a launch agent/daemon opens and runs it and lets it close on its own.

awilltx

  • Guest
Re: OSXversion$
« Reply #21 on: July 22, 2016, 08:40:17 PM »
Either the two lines I copied or the full function you just posted will work. Mine returns "10.11.6" which is correct.


Alan

xairbusdriver

  • Storm
  • *****
  • Posts: 2199
    • EW7115 (E7115)
    • KTNGERMA20
    • Mid-South Weather
  • Station Details: Davis VP2 wireless + remote Anemometer/2014 Mac min - 10.13.4/WC 3.0
Re: OSXversion$
« Reply #22 on: July 22, 2016, 08:47:51 PM »
Quote from: xairbus
I am assuming the script can run independently.
Quote
Unfortunately no you could not assume that
But of course, I could. I actually did! :) I stated that as a condition for the author/experts/authorities to verify. All "questions" don't end with a question mark. [banghead] [cheer] [lol] What is the point of posting code that would not run as posted? Note: That is a question, kind sir.

Blicj11

  • Storm
  • *****
  • Posts: 3029
    • EW3808
    • KUTHEBER6
    • Timber Lakes Utah
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP™ Data Logger | iMac (late 2013), 3.5 GHz Intel Core i7, 24 GB RAM, macOS Mojave | Sharx SCNC2900 Webcam | Supportive Wife
Re: OSXversion$
« Reply #23 on: July 22, 2016, 08:57:55 PM »
Either the two lines I copied or the full function you just posted will work. Mine returns "10.11.6" which is correct.

Same here: 10.11.6 displays as it should.
Blick


Randall75

  • Storm
  • *****
  • Posts: 1205
  • CWOP-CW6734 WeatherUnderground-KOHNEWAR6
    • CW6734
    • KOHNEWAR6
    • Randy's Weather On The Hill
  • Station Details: Davis Vantage Pro 2 Plus.iMac i5 Sierra 10.12.6 8GB Ram, WeatherCat 3,Logitech 9000 Pro Web Cam
Re: OSXversion$
« Reply #24 on: July 22, 2016, 09:18:20 PM »
Edouard
 What is the latest version of your script I have 10.9 beta


cheers


 [cheers1]

elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 5002
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, MacBook Pro (Early 2011), macOS 10.13.6, WeatherCat 3
Nothing officially new since 2013 (Re: OSXversion$)
« Reply #25 on: July 23, 2016, 10:44:44 PM »
Dear Randall and WeatherCat scripters,

What is the latest version of your script I have 10.9 beta

There hasn't been an official release of the WeatherCat scripts since December 2013.  You can still download them from this thread:

http://athena.trixology.com/index.php?topic=1039.0

Sorry guys, I wish I could get back to these scripts but the health of family members has continued to degrade which gives me more and more to do.  Also there is that certain other "dependent" that definitely isn't cooperating . . . .

Oh well, . . . . Edouard


Randall75

  • Storm
  • *****
  • Posts: 1205
  • CWOP-CW6734 WeatherUnderground-KOHNEWAR6
    • CW6734
    • KOHNEWAR6
    • Randy's Weather On The Hill
  • Station Details: Davis Vantage Pro 2 Plus.iMac i5 Sierra 10.12.6 8GB Ram, WeatherCat 3,Logitech 9000 Pro Web Cam
Re: OSXversion$
« Reply #26 on: July 25, 2016, 02:02:51 AM »
Hi Edouard
 Thanks for the info on the WC Growler
Changed the set OSXversion to system version of (system info)
And that did the trick


cheers


 [cheers1]

Blicj11

  • Storm
  • *****
  • Posts: 3029
    • EW3808
    • KUTHEBER6
    • Timber Lakes Utah
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP™ Data Logger | iMac (late 2013), 3.5 GHz Intel Core i7, 24 GB RAM, macOS Mojave | Sharx SCNC2900 Webcam | Supportive Wife
Re: OSXversion$
« Reply #27 on: July 25, 2016, 03:52:00 PM »
And that did the trick

Glad to see you have a resolution Randall.
Blick


elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 5002
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, MacBook Pro (Early 2011), macOS 10.13.6, WeatherCat 3
Glad you are back in business! (Re: OSXversion$)
« Reply #28 on: July 25, 2016, 10:57:15 PM »
Dear Randall, Blick, and WeatherCat scripters,

Thanks for the info on the WC Growler
Changed the set OSXversion to system version of (system info)
And that did the

I"m glad that solved your problem Randall!  :)

Cheers, Edouard  [cheers1]