     @IBOutlet var playlistSplitView: NSSplitView!
 
     //    cache playlists read and saved to defaults
+	var appDelegate: AppDelegate = NSApp.delegate as! AppDelegate
     var defaults = UserDefaults.standard
     var playlists = [PlayList]()
     var playCache = [PlayList]()

        // cache our list before editing
        playCache = playlists

        self.playlistSplitView.setPosition(120, ofDividerAt: 0)
    }


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