Call SetBatch(), before creating the TApplication to avoid Cocoa GUI.