                 if (itemURL as AnyObject).isFileReferenceURL() {
                     let fileURL : URL? = (itemURL as AnyObject).filePathURL
                     let path = fileURL!.absoluteString//.stringByRemovingPercentEncoding
-					let attr = metadataDictionaryForFileAt((fileURL?.path)!)
+					let attr = appDelegate.metadataDictionaryForFileAt((fileURL?.path)!)
 //					print("attr \(attr)")
 					let time = attr?[kMDItemDurationSeconds] as! TimeInterval
                     let fuzz = (itemURL as AnyObject).deletingPathExtension!!.lastPathComponent as NSString

    @IBOutlet var playlistSplitView: NSSplitView!

    //    cache playlists read and saved to defaults
    var defaults = UserDefaults.standard
    var playlists = [PlayList]()
    var playCache = [PlayList]()

        // cache our list before editing
        playCache = playlists

		// overlay in history
		playlistArrayController.addObject(appDelegate.histories)
		
        self.playlistSplitView.setPosition(120, ofDividerAt: 0)
    }

