plamoni/SiriProxy — Issue #311: How do I create SiriButtons?
Author: PianoThomas
Created: 2012-02-02 19:47:39+00:00
State: open

Hey,
do you know these cool SiriButtons showing up, if you ask "I need to hide a body!"
how do I implement these in my own plugins?

class SiriButton < SiriObject
def initialize(text="Button Text", commands=[])
super("Button", "com.apple.ace.assistant")
self.text = text
self.commands = commands
end
end
add_property_to_class(SiriButton, :text)
add_property_to_class(SiriButton, :commands)

i found this in the lib folder... how do I add this to my plugin?