Open alexschcom opened 1 month ago
Thank you for opening this issue!
🔔 @Rawnly @peterdev22 @danpalmer @octoxan @Shpigford @urwrstkn8mare you might want to have a look.
Hey @alexschcom thanks for reporting, i need your help to debug this. Can you please run in the terminal the following command and post here the output?
osascript -e 'tell application "Music" to get name of source 1'
Below a little explanation of how the command "add to library" works:
We use applescript to control the Music application. This for sure has some limitations. The add to library command as you can see in the code tries to add the current track to source 1
and if it fails tries to retrieve the library name and retry duplicating the track to the playlist $libraryName
. This happens because in the past the command was just duplicate current track to library playlist "Library"
but i discovered then that the Library
is localized so it worked only for OS with language set to EN.
Which version of macOS are you running?
Hey @rawnly -- the command returns Library
(I am using my Mac in English). And I'm running macOS 14.5
Extension
https://www.raycast.com/fedevitaledev/music
Raycast Version
1.79.1
macOS Version
14.5
Description
When playing a song that's not in my Library and I run the "Add to Library" command, it does bring up a toast message saying "Added to Library", but it did in fact not :(
Steps To Reproduce
Current Behaviour
No response
Expected Behaviour
No response