- Code: Select all
tell application "IndigoServer"
set theText to value of variable "Weather_Icon"
if theText contains "Clear" then
set the value of variable "Weather_Icon" to "Moon"
else if theText contains "Cloudy" and theText contains "Mostly" then
set the value of variable "Weather_Icon" to "Moon_Mostly"
end if
end tell
Thanks,
Carl