I am trying to run a BLLED command as an immediate script command in an Event versus in a script. The command I am trying to have run is:
hs.PluginFunction("BLLED", "", "SetDateTime", new Object(){1})
When I type the statement into the Event HS adds the "&" in front but when I execute the event I get the following error in the log:
Running script(2) &hs.PluginFunction("BLLED", "", "SetDateTime", new Object(){1}), init error: Expected end of statement
I also tried it without the outer parenthesis but that just resulted in a syntax error as well.
Any suggestions on what obvious thing I am doing wrong? Thanks!
hs.PluginFunction("BLLED", "", "SetDateTime", new Object(){1})
When I type the statement into the Event HS adds the "&" in front but when I execute the event I get the following error in the log:
Running script(2) &hs.PluginFunction("BLLED", "", "SetDateTime", new Object(){1}), init error: Expected end of statement
I also tried it without the outer parenthesis but that just resulted in a syntax error as well.
Any suggestions on what obvious thing I am doing wrong? Thanks!
Comment