I haven't coded in years so I'm a pretty rusty. I was able to use the default Query User VBscript task and get it to run fine on my target Windows machines. I'm trying to get javascript because it should theoretically run on both Mac and Windows, but it doesn't work.
For basic testing, I am trying to just run
if (confirm("This is a test")) {
txt = "message1";
} else {
txt = "message2";
}
or alert('message"); yet nothing popups up on Mac or Windows. That snippet runs fine in JSFiddle. If I could just get something going I could tinker with it till it works but I'm struggling to get anything to show beyond some vbscript code that I don't want to use.
*EDIT: I should also note that when I push the tasks to the targeted machines, Altiris says the task ran successfully but nithing actually happens.