A LifeGuard update is available, would you like to install now? - Yes / Delay 6 MONTHS
Hello,
I'm looking for a way to call a legacy script command from within a post-sync script using javascript. Currently testing the with this sample code and based on selection, would like to trigger the mxconfig command, which is part of the legacy scripting.
#!/usr/bin/env js
var buttonLabels = ['Red', 'Green', 'Blue'];
mobicontrol.message.createInfoDialog('Choose the colour').withButtons(buttonLabels[0], buttonLabels[1], buttonLabels[2]).withCallback(onConfirm).show();
function onConfirm(result) {
if (result.buttonIndex != null) {
mobicontrol.log.info('The ' + buttonLabels[result.buttonIndex] + ' button was clicked.');
}
}
Finding a way to combine the functionality of both scripting languages would be very helpful.
- Shawn