Have you ever been listening to the Music app on Mac OS and went, "Oh, I wonder what song this is?"
For me, that means command-tabbing to the Music app, getting to the LCD area, interacting and then reading the song title and artist.
Wouldn't it be great to hit one key and hear song title and artist, no matter what app you were in?
Well, thanks to Chat GPT, we now have a simple AppleScript that does this.
Copy the below text into ScriptEditor which is in your Utilities folder.
Make a new script and paste the below text.
tell application "Music"
set currentTrack to current track
set trackName to name of currentTrack
set artistName to artist of currentTrack
set trackInfo to "Now playing: " & trackName & " by " & artistName
tell application "VoiceOver"
Command S to save. Give it a name and save it. I used the default folder.
Open VoiceOver Utility and navigate to Commanders>Keyboard.
Add a keystroke and select Custom Commands from the menu. Choose run AppleScript. Navigate to the file you saved. For me, I used the default ScriptEditor folder on iCloud Drive and right-option Q for the keystroke.
Now, when I hit right-option Q, VoiceOver says the song title and artist of the currently playing song. Pretty nifty.
Pretty nifty, eh?