  ------------------------------------------------------------------------------
  
  © 2004-2007 nakamuxu
- © 2014-2017 1024jp
+ © 2014-2018 1024jp
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.

                    writeToConsole(message: error.localizedDescription, scriptName: scriptName)
                }
            }
        }
        
        // execute

        
        // read output asynchronously for safe with huge output
        if let outputType = outputType {
            weak var observer: NSObjectProtocol?
            observer = NotificationCenter.default.addObserver(forName: .NSFileHandleReadToEndOfFileCompletion, object: outPipe.fileHandleForReading, queue: nil) { (note: Notification) in
                NotificationCenter.default.removeObserver(observer!)
