The following example displays the path to the current task list and the total number of tasks in it.
Sub Main
MsgBox (AutoMate2.TaskList + has + AutoMate2.TaskCount + task(s).)
End Sub