             do {
                 input = try self.readInputString(type: inputType, editor: document)
             } catch let error {
-                Script.writeToConsole(message: error.localizedDescription, scriptName: self.name)
+                AbstractScript.writeToConsole(message: error.localizedDescription, scriptName: self.name)
                 return
             }
         } else {

                do {
                    try ShellScript.applyOutput(output, editor: document, type: outputType)
                } catch let error {
                    Script.writeToConsole(message: error.localizedDescription, scriptName: scriptName)
                }
            }
        }

            // put error message on the sconsole
            let errorData = errPipe.fileHandleForReading.readDataToEndOfFile()
            if let message = String(data: errorData, encoding: .utf8), !message.isEmpty {
                AbstractScript.writeToConsole(message: message, scriptName: scriptName)
            }
        }
    }
