Apple Script Editor not working

I've been trying to run a script that was given me by a developer to fix an issue with his software. When I open Script Editor and hit the Play arrow nothing happens.


iMac 27″ 5K, macOS 11.3

Posted on Jul 12, 2021 4:29 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 12, 2021 7:40 PM

I am playing In A Lifetime from the Clannad Anam album in Apple Music on Big Sur 11.4. The AppleScript as written returns the name of that track. Unless you click the outline icon at the bottom of the Script Editor, the code will run but not show you the result.


This code will pop a dialog showing that track name:


use scripting additions

tell application "Music"
	display dialog (get name of current track) as text
end tell


Similar questions

6 replies
Question marked as Top-ranking reply

Jul 12, 2021 7:40 PM in response to Cary Wolfson

I am playing In A Lifetime from the Clannad Anam album in Apple Music on Big Sur 11.4. The AppleScript as written returns the name of that track. Unless you click the outline icon at the bottom of the Script Editor, the code will run but not show you the result.


This code will pop a dialog showing that track name:


use scripting additions

tell application "Music"
	display dialog (get name of current track) as text
end tell


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Apple Script Editor not working

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.