         
         // 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
         

    /// - returns: An instance of `Script` created by the receiver.
    ///            Returns `nil` if the script type is unsupported.
    func makeScript() -> Script? {
        switch self.type {
        case .appleScript: return AppleScript(with: self)
        case .shellScript: return ShellScript(with: self)
        case .unknown: return nil
        }
    }
}

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