         let fileManager = FileManager.default
         
         for path in openFiles {
-            
+
             do {
                 let files = try fileManager.contentsOfDirectory(atPath: path)
                 for file in files {

        let index = urlString.index(urlString.startIndex, offsetBy: 9)
        let url = urlString.substring(from: index)

        NotificationCenter.default.post(name: Notification.Name(rawValue: "HeliumLoadURL"), object: url)
    }

    @objc func handleURLPboard(_ pboard: NSPasteboard, userData: NSString, error: NSErrorPointer) {
        if let selection = pboard.string(forType: NSPasteboardTypeString) {
            // Notice: string will contain whole selection, not just the urls
            // So this may (and will) fail. It should instead find url in whole
            // Text somehow
            NotificationCenter.default.post(name: Notification.Name(rawValue: "HeliumLoadURL"), object: selection)
        }
    }
    // MARK: Finder drops
    func application(_ sender: NSApplication, openFile: String) -> Bool {
        Swift.print("sender \(sender) file \(openFile)")
        return true
    }
    
    func application(_ sender: NSApplication, openFiles: [String]) {

    
    // Called when the App opened via URL.
    @objc func handleURLEvent(_ event: NSAppleEventDescriptor, withReply reply: NSAppleEventDescriptor) {
        let hwc = NSApp.keyWindow?.windowController

        guard let keyDirectObject = event.paramDescriptor(forKeyword: AEKeyword(keyDirectObject)),
            let urlString = keyDirectObject.stringValue else {
                return print("No valid URL to handle")
