This code is from the scripting documentation...
js code:
function DownloadUpdateFile(sFile)
{
var Started = MsgPlus.DownloadFile(sFile);
if(Started)
Debug.Trace("Downloading file, waiting for event");
else
Debug.Trace("Couldn't start the download");
}
function OnEvent_DownloadFileComplete(Url, OutFile, Success)
{
Debug.Trace("DownloadFileComplete event received for " + Url);
Debug.Trace(" Success: " + Success);
if(Success)
{
MsgPlus.PlaySound(OutFile);
}
}