Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to control "love" and "dislike" in hs.itunes? #2421

Open
i-chaochen opened this issue Jul 18, 2020 · 3 comments
Open

how to control "love" and "dislike" in hs.itunes? #2421

i-chaochen opened this issue Jul 18, 2020 · 3 comments

Comments

@i-chaochen
Copy link

Thanks for sharing this great tool!

I just notice in there is no "love" or "dislike" function for iTunes player.
https://www.hammerspoon.org/docs/hs.itunes.html

"love" or "dislike" don't exist in hs.spotify either.
https://www.hammerspoon.org/docs/hs.spotify.html

Wonder when can we have these two kinds of new features in the music player.

Thanks!

@cmsj
Copy link
Member

cmsj commented Sep 9, 2020

This will depend entirely on whether or not iTunes exposes those options through AppleScript.

@latenitefilms
Copy link
Contributor

Something like this should work:

tell application "iTunes"
    if loved of current track is true then
        set loved of current track to false
    else
        set loved of current track to true
    end if
end tell

@hououinkami
Copy link

hououinkami commented Sep 21, 2020

I have made a canvas menu for macOS's Music App, it contains functions such as star rating, toggle between "Loved" and "Unloved", random and repeat mode control, add to library or playlist, etc. This might help you.
image
https://github.com/hououinkami/HammerspoonConfig/blob/master/module/Music.lua

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants