 
 
 
+enum ScriptingExecutionModel: String {
+    
+    case unrestricted
+    case persistent
+    
+}
+
+
+
 struct ScriptDescriptor {
     
     // MARK: Public Properties

 */

import Cocoa

enum ScriptingEventType: String {
    

        guard let type = self.type else { return nil }
        
        switch type {
        case .appleScript:
            switch self.executionModel {
            case .unrestricted: return AppleScript(with: self)
            case .persistent: return PersistentOSAScript(with: self)
            }
        case .shellScript: return ShellScript(with: self)
        }
    }
