script to add to favorites in org file

Aleksas Tunikas <[email protected]>
Newsgroups gmane.emacs.emms.user
Message-ID <[email protected]>
speaking of which i also use this script but it is very basic it copy
the content of the file and date/time so i can track down what i was
liking in particular day, also generated with gpt bot!

#!/bin/bash
emacsclient -e "(let ((default-directory \"$HOME\"))
                   (with-current-buffer (find-file-noselect \"emms_favorites.org\")
                     (goto-char (point-max))
                     (insert (format \"* %s\n  - Timestamp: %s\n  - Artist: %s\n  - Title: %s\n\n\"
                                     (emms-track-description (emms-playlist-current-selected-track))
                                     (format-time-string \"%Y-%m-%d %H:%M:%S\")
                                     (emms-track-get (emms-playlist-current-selected-track) 'info-artist)
                                     (emms-track-get (emms-playlist-current-selected-track) 'info-title)))))" > /dev/null 2>&1

none of this use the extended browser functionality, which is naturally
a shame, but also show how many ways there are in the world to skin a
cat! 
-- 
Aleksas Tunikas
http://www.aleksas.ru
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.