AWS Thinkbox Discussion Forums

job scripts - "MultiSelect=False"

Hi,
Just checking, but the old way in a job script of controlling a job script only being visible (not greyed out) of entering into the INI file:

“MultiSelect=False”

is now no longer possible and is replaced by either making the script enabled/disabled in the scripts menu OR by handling the multi-selection in the actual py script?

selectedJobs = MonitorUtils.GetSelectedJobs() if len(selectedJobs) > 1: scriptDialog.ShowMessageBox( "Only one job can be selected at a time.", "Multiple Jobs Selected" ) return

However, the above isn’t the same as not allowing the script to be executed in the first place…(I will live with the new approach!)

Thanks,
Mike

Hey Mike,

Yeah, there currently isn’t a way to disable the script outright when multiple jobs are selected. The reason we did away with the ini file is for performance, especially in remote situations. In v5, the ini file for every script needed to be read in just to build the initial menu, and that ran very slowly in remote situations.

Cheers,

  • Ryan

OK, Thanks Ryan. (I was just checking, before I spend too much time changing too many scripts)
Performance both locally and remotely is more important :slight_smile:

Privacy | Site terms | Cookie preferences