                 item.submenu = submenu
                 menu.addItem(item)
                 
-                self.addChildFileItem(to: submenu, in: url)
+                self.addChildFileItem(in: url, to: submenu)
             }
         }
     }

    
    // MARK: File Presenter Protocol
    
    var presentedItemOperationQueue = OperationQueue.main
    
    
    /// URL to observe

    private func editScript(at url: URL) throws {
        
        guard NSWorkspace.shared.open(url) else {
            throw ScriptFileError(kind: .open, url: url)
        }
    }
