com.mushoo.RunAppleScript.sdPlugin/index_pi.js
// our method to pass values to the plugin
our method to pass values to the plugin
our method to pass values to the plugin
function sendValueToPlugin (value, param) {
    if (websocket && (websocket.readyState === 1)) {
        const json = {
            'action': actionInfo['action'],
            'event': 'sendToPlugin',
            'context': uuid,
            'payload': {
                [param]: value
            }
        };
        websocket.send(JSON.stringify(json));
    }
}
function sendValueToPlugin ( value , param ) { if ( websocket && ( websocket . readyState === 1 ) ) { const json = { 'action' : actionInfo [ 'action' ] , 'event' : 'sendToPlugin' , 'context' : uuid , 'payload' : { [ param ] : value } } ; websocket . send ( JSON . stringify ( json ) ) ; } }
our method to pass values to the plugin
our method to pass values to the plugin