         
         let info = NSDictionary(contentsOf: url.appendingPathComponent("Contents/Info.plist"))
         
+        if let name = info?["CotEditorExecutionModel"] as? String {
+            self.executionModel = ScriptingExecutionModel(rawValue: name) ?? .unrestricted
+        } else {
+            self.executionModel = .unrestricted
+        }
+        
         if let names = info?["CotEditorHandlers"] as? [String] {
             self.eventTypes = names.flatMap { ScriptingEventType(rawValue: $0) }
         } else {

    let url: URL
    let name: String
    let type: ScriptingFileType?
    let shortcut: Shortcut
    let eventTypes: [ScriptingEventType]
    let ordering: Int?
    
    

 */

import Cocoa
import OSAKit

enum ScriptingEventType: String {
    
