I found that helm-itunes throws an error when trying to play a track that contains a ' character. This is due to incorrect quoting. After some fiddling I found this to work:
(defun helm-itunes-play-track (track)
(osascript-run-str (concat "tell application \"" helm-itunes-music-player "\" to play track \"" track "\"")))
This requires the use of the osx-osascript library, which contains a couple of helper functions to create correctly quoted osascript strings. May I suggest to work this into helm-itunes?
I found that helm-itunes throws an error when trying to play a track that contains a ' character. This is due to incorrect quoting. After some fiddling I found this to work:
(defun helm-itunes-play-track (track) (osascript-run-str (concat "tell application \"" helm-itunes-music-player "\" to play track \"" track "\"")))
This requires the use of the osx-osascript library, which contains a couple of helper functions to create correctly quoted osascript strings. May I suggest to work this into helm-itunes?