Help with an apple script conversion

Posted on
Tue Feb 04, 2020 6:14 pm
greenhornet offline
Posts: 61
Joined: Jan 22, 2011

Help with an apple script conversion

Can anyone help me convert the old Indigo Apple Script below? The concept is / was that if it was not daylight and a spefic light was not on, the light would turn on to a set brightness and stay on for a certain amount of time..
Code: Select all
 return (not (on state of device "Kitchen Table") and (value of variable "isDaylight" = "false"))

Posted on
Wed Feb 05, 2020 12:30 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Help with an apple script conversion

I can help you with a python equivalent, but in this particular case Indigo's UI should let you create that conditional like this:
Attachments
Screen Shot 2020-02-05 at 12.29.34 PM.png
Screen Shot 2020-02-05 at 12.29.34 PM.png (95.39 KiB) Viewed 550 times

Image

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 6 guests