Newbie Question - AppleScript
Posted: Tue Feb 23, 2016 5:51 am
Hi, Sorry for a newbie question ... I am trying a simple applescript to copy a device property value to a variable (named "Watts")
I get the error message:
Can't get value of variable "expWattsToday" of device named "EnergyMonitor"
I know that this property (expWattsToday) exists ... below is from log file
702536144 EnergyMonitor: batteryLevel("0"), expWattsNow("0"), expWattsToday("6049.17"), genWattsNow("0"), genWattsToday("18631.54"),
: lastUpdated("2016/02/23 21:46:41"), networkOwlId("44371910049E"), signalQuality("0"), signalStrength("0"), temperature("25.00"),
: usedWattsNow("0"), usedWattsToday("0"), weatherCode("116"), weatherText("Partly Cloudy"),
... any help will be appreciated.
- Code: Select all
set Watts to value of variable "expWattsToday" of device named "EnergyMonitor"
I get the error message:
Can't get value of variable "expWattsToday" of device named "EnergyMonitor"
I know that this property (expWattsToday) exists ... below is from log file
702536144 EnergyMonitor: batteryLevel("0"), expWattsNow("0"), expWattsToday("6049.17"), genWattsNow("0"), genWattsToday("18631.54"),
: lastUpdated("2016/02/23 21:46:41"), networkOwlId("44371910049E"), signalQuality("0"), signalStrength("0"), temperature("25.00"),
: usedWattsNow("0"), usedWattsToday("0"), weatherCode("116"), weatherText("Partly Cloudy"),
... any help will be appreciated.