Correct print functions in scriptmanager

::error and ::printf get handled differentially: log the error in the LogWindow (needs testing)