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

        
        // Extract from URL
        
        let type = ScriptDescriptor.extensions.first { $0.value.contains(url.pathExtension) }?.key ?? .unknown
        
        var name = url.deletingPathExtension().lastPathComponent
        

    
    case appleScript
    case shellScript
    
}

