     // MARK: Private Methods
     
     /// read files and create/add menu items
-    private func addChildFileItem(to menu: NSMenu, fromDirctory directoryURL: URL) {
-        
-        guard let fileURLs = try? FileManager.default.contentsOfDirectory(at: directoryURL,
-                                                                          includingPropertiesForKeys: [.fileResourceTypeKey],
-                                                                          options: [.skipsPackageDescendants, .skipsHiddenFiles])
+    private func addChildFileItem(to menu: NSMenu, in directoryURL: URL) {
+        
+        guard let urls = try? FileManager.default.contentsOfDirectory(at: directoryURL,
+                                                                      includingPropertiesForKeys: [.fileResourceTypeKey],
+                                                                      options: [.skipsPackageDescendants, .skipsHiddenFiles])
             else { return }
         
-        for fileURL in fileURLs {
+        for url in urls {
             // ignore files/folders of which name starts with "_"
-            if fileURL.lastPathComponent.hasPrefix("_") { continue }
-        
-            let title = self.scriptName(from: fileURL)
+            if url.lastPathComponent.hasPrefix("_") { continue }
+        
+            let title = self.scriptName(from: url)
             
             if title == String.separator {
                 menu.addItem(NSMenuItem.separator())
                 continue
             }
             
-            guard let resourceType = (try? fileURL.resourceValues(forKeys: [.fileResourceTypeKey]))?.fileResourceType else { continue }
+            guard let resourceType = (try? url.resourceValues(forKeys: [.fileResourceTypeKey]))?.fileResourceType else { continue }
             
             switch resourceType {
             case URLFileResourceType.directory:

        
        menu.removeAllItems()
        
        self.addChildFileItem(to: menu, fromDirctory: self.scriptsDirectoryURL)
        
        if !menu.items.isEmpty {
            menu.addItem(NSMenuItem.separator())

        var scriptName = filename.replacingOccurrences(of: "^[0-9]+\\)", with: "", options: .regularExpression)
        
        // remove keyboard shortcut definition
        if let keySpecChars = scriptName.components(separatedBy: ".").last,
            ModifierKey.all.contains(where: { keySpecChars.hasPrefix($0.keySpecChar) })
        {
            scriptName = scriptName.components(separatedBy: ".").first ?? scriptName
        }
        
        return scriptName
