Ramias wrote:That's great. Definitely shows the various properties of datetime.
I get "Expected end of line, etc. but found "from". when I paste that code into the "If Script returns true" box of the conditions tab of my trigger.
How would I format a script for that section to return a true/false value?
Thanks again.
I've not used this feature in Indigo before (conditional scripts) but from the wiki, it appears that this feature may only support AppleScript. If that's true (sorry, no pun intended), you have two choices:
1. Run your conditional Python script as an embedded script under the Actions tab of your Trigger. This is what I would do.
2. Find someone that can turn your conditional script into an AppleScript (I'm not your guy for that I'm afraid.)
I can help you with option 1 if that's what you decide to do. Cheers,
Dave