                 self.playitemTableView.scrollRowToVisible(list.count - 1)
             }
         } else {
+            let item = playlistArrayController.newObject()
             let list = Array <PlayItem>()
+
             let temp = NSString(format:"%p",list) as String
             let name = "play#" + String(temp.characters.suffix(3))
-            let item : [String:AnyObject] = [name : list as AnyObject]
-
+            item.key = name
+            item.value = list
+            
             playlistArrayController.addObject(item)
 
             DispatchQueue.main.async {

                }
            }
            
            DispatchQueue.main.async {
                let rows = IndexSet.init(integersIn: NSMakeRange(row, newIndexOffset).toRange() ?? 0..<0)
                self.playitemTableView.selectRowIndexes(rows, byExtendingSelection: false)
            }
        }
        return true
    }


            }
            
            for itemURL in items {
                if (itemURL as! NSURL).isFileReferenceURL() {
                    let fileURL : URL? = (itemURL as AnyObject).filePathURL

                    // Capture playlist name from origin folder of 1st item
