The following is an example of a script for checking the number of jobs that have not been completed in JMAG-Scheduler.
Note: pywin32 must be installed.
import win32com.client
# Obtaining JMAG-Scheduler Objects
scheduler = win32com.client.Dispatch("scheduler.JobApplication.241")
# Get the number of jobs that haven't finished yet (get the number of jobs that are running or queued; jobs that are on wait aren't included).
print(scheduler.UnfinishedJobs())


