Author Topic: OSXversion$  (Read 7850 times)

Steve

  • Global Moderator
  • Storm
  • *****
  • Posts: 1555
    • 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: 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
PWSweather - WeatherCloud - Twitter - Facebook

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: 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: 3126
    • EW7115 (E7115)
    • KTNGERMA20
    • Mid-South Weather
  • Station Details: Davis VP2 wireless + remote Anemometer/2014 Mac min - 10.15.7/WC 3.0.5
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
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system


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: 6494
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, 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: 3126
    • EW7115 (E7115)
    • KTNGERMA20
    • Mid-South Weather
  • Station Details: Davis VP2 wireless + remote Anemometer/2014 Mac min - 10.15.7/WC 3.0.5
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.
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system


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: 3126
    • EW7115 (E7115)
    • KTNGERMA20
    • Mid-South Weather
  • Station Details: Davis VP2 wireless + remote Anemometer/2014 Mac min - 10.15.7/WC 3.0.5
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.
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system


Blicj11

  • Storm
  • *****
  • Posts: 3941
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Ventura 13.6 | Sharx SCNC2900 Webcam | WeatherCat 3.3 | 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: 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: 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: 6494
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, 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: 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: 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: 3941
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Ventura 13.6 | Sharx SCNC2900 Webcam | WeatherCat 3.3 | 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: 6494
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, 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]