View unanswered posts | View active topics It is currently Thu Apr 24, 2014 6:40 am



Reply to topic  [ 4 posts ] 
 AppleScript help 
Author Message

Joined: Dec 02, 2011
Posts: 28
Post AppleScript help
Hi, I'm not very good with AppleScript yet. I would like to use a script in a trigger that checks the status of the motion detector in my kitchen, and if it's in the off state, turn off the lights. Any help appreciated, thanks.


Tue Dec 20, 2011 9:19 pm
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 13241
Location: Texas
Post Re: AppleScript help
Are you using Indigo 5? It supports conditions in the Conditions tab against device states, so I am not sure you need to use a script at all.

_________________
Image


Tue Dec 20, 2011 9:26 pm
Profile WWW

Joined: Dec 02, 2011
Posts: 28
Post Re: AppleScript help
Yes, but what I have is a scheduled event that changes several device states as its action, but the kitchen lights are the only one of the list I want to check the motion detector status first. I thought executing an AppleScript would be easier, so that condition is set for only the kitchen lights, and the others just run normally.


Tue Dec 20, 2011 9:45 pm
Profile
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 8357
Location: Austin, Texas
Post Re: AppleScript help
Easiest way is to have two different schedules with identical time/date specifiers - one for the one that does all with no condition and another one that has the condition. No scripting required.

_________________
Jay (Indigo Support)
Image


Tue Dec 20, 2011 10:57 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.