I record music at home and regularly need to add tracks created with GarageBand to Music. This requires me to manually set the artist, album, genre, year, & artwork so I'm trying to write an AppleScript to automate the process. Using add to add the track works fine but when I try to set any of the details I get a -54 permissions error. I've tried using set within the tell application "Music" block and as a nested tell on the track itself, and exporting the script as an app and giving it permissions for Music in system settings, but I get the -54 every time. Can anyone help?
macOS 15.6.1