How Do You Set "Condition" in a Trigger with Applescript

Posted on
Mon Jun 20, 2011 8:25 am
bob offline
User avatar
Posts: 500
Joined: Jun 14, 2006

How Do You Set "Condition" in a Trigger with Applescript

How Do You Set "Condition" in a Trigger with Applescript? I want to set "If variable" someVariable is false. I don't see "condition" in the dictionary?

thanks,


bob

Posted on
Mon Jun 20, 2011 9:18 am
jay (support) offline
Site Admin
User avatar
Posts: 18246
Joined: Mar 19, 2008
Location: Austin, Texas

Re: How Do You Set "Condition" in a Trigger with Applescript

Conditions aren't supported in AppleScript or Python.

As a workaround, you can create a sort of "template" trigger which contains the condition you want to use. Then duplicate it rather than create one from scratch and change the trigger and/or actions in code. The Conditions will get duplicated from the template.

NOTE: I just found a bug in the current Indigo 5 beta - the duplicate command in AppleScript seems to be broken; we'll get that fixed in an upcoming release.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Jun 30, 2011 10:51 am
jay (support) offline
Site Admin
User avatar
Posts: 18246
Joined: Mar 19, 2008
Location: Austin, Texas

Re: How Do You Set "Condition" in a Trigger with Applescript

Fixed in Beta 6 - the duplicate bug in AppleScript that is is fixed. So the workaround I proposed above will now work.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests