How to trigger a Smart Rule from an Applescript?

I can set up a Smart Rule as On demand trigger and then kick the rule off via the Context Menu. Is there a way to trigger a rule from an Applescript as well?

Don’t use it myself but this should do it

perform smart rule name "Name of your Smart Rule"


Thanks @pete31, that line of code works flawlessly with Keyboard Maestro to trigger smart rules via keyboard shortcuts.

In case there are applescript newbs like myself interested in using this, here’s what the full code looks like in KB Maestro:

tell application id "DNtp"
	perform smart rule name "NAME"
end tell