         
         self.url = url
         
-        self.type = ScriptDescriptor.extensions.first { $0.value.contains(url.pathExtension) }?.key
+        self.type = ScriptingFileType.all.first { $0.extensions.contains(url.pathExtension) }
         
         var name = url.deletingPathExtension().lastPathComponent
         

    
    case appleScript
    case shellScript
    
}


    
    
    
    // MARK: -
    // MARK: Lifecycle
    
