by djdd » Wed Feb 08, 2017 3:43 pm
An example can be found in the SampleScript "fixTrailingThe", local.js, line 234, that also Show how to handle the Situation, if nothing was selected
Code: Select all
trackList = uitools.getSelectedTracklist()
if (!trackList || trackList.count == 0) {
trackList = uitools.getTracklist()
}
if (!trackList || trackList.count == 0) {
res = messageDlg("Select tracks to be updated", 'Error', ["btnOK"], {}, function(){})
return
}
Regards,
Dieter
An example can be found in the SampleScript "fixTrailingThe", local.js, line 234, that also Show how to handle the Situation, if nothing was selected
[code]trackList = uitools.getSelectedTracklist()
if (!trackList || trackList.count == 0) {
trackList = uitools.getTracklist()
}
if (!trackList || trackList.count == 0) {
res = messageDlg("Select tracks to be updated", 'Error', ["btnOK"], {}, function(){})
return
}
[/code]
Regards,
Dieter