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

    
    case appleScript
    case shellScript
    case unknown
    
}


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