From Widget to AppleScript

I have some faceless background AppleScripts and i would like to control some of them using Dashboard Widgets.

Simplest widget needs just single checkbox and text and when user clicks checkbox, widget sends “its on”/“its off” message to AppleScript.

Is this possible?

Are you writing the widget, or is it someone elses.

I’m writing it to myself, but i dont know JavaScript…