AppleScript and Music I have created a small AppleScript that queries Music App if it is playing, and if it is then it queries and gets artist and song name. Now I want to query some more information.
Where can I find the documentation regarding the available commands and information that I can use from Music app? For example, I now use something like:
set a to &quot;Now playing: &quot; &amp; artist of current track &amp; &quot; - &quot; &amp; name of current track

what else can I use except artist of current track or name of current track? Where can I find what other information can I query/use?
Where can I find what other information can I query/use?

Check out the Library in Script Editor.
Script Editor &gt; Window &gt; Library    ⇧⌘L
You can also query the properties of the current track to see what else is available specifically to it, e.g.:
tell application &quot;Music&quot; to get properties of current track

On my system at the moment, it returns:
{class:file track, id:181, index:8, name:&quot;Brain Damage&quot;, persistent ID:&quot;C2EE4E8E7AD4C9A6&quot;, database ID:157, date added:date &quot;Saturday, November 21, 2020 at 3:59:39 AM&quot;, time:&quot;3:50&quot;, duration:230.757995605469, artist:&quot;Pink Floyd&quot;, album artist:&quot;&quot;, composer:&quot;Roger Waters&quot;, album:&quot;Dark Side Of The Moon&quot;, genre:&quot;Rock&quot;, bit rate:192, sample rate:44100, track count:9, track number:8, disc count:1, disc number:1, size:5595268, volume adjustment:0, year:1973, comment:&quot;&quot;, EQ:&quot;&quot;, kind:&quot;AAC audio file&quot;, media kind:song, modification date:date &quot;Tuesday, September 6, 2005 at 1:08:28 PM&quot;, enabled:true, start:0.0, finish:230.757995605469, played count:1, skipped count:0, compilation:false, rating:0, bpm:0, grouping:&quot;&quot;, bookmarkable:false, bookmark:0.0, shufflable:true, lyrics:&quot;&quot;, category:&quot;&quot;, description:&quot;&quot;, episode number:0, unplayed:true, sort name:&quot;&quot;, sort album:&quot;&quot;, sort artist:&quot;&quot;, sort composer:&quot;&quot;, sort album artist:&quot;&quot;, loved:false, disliked:false, album loved:false, album disliked:false, cloud status:unknown, work:&quot;&quot;, movement:&quot;&quot;, movement number:0, movement count:0, location:alias &quot;Macintosh HD:Users:me:Music:Music:Media.localized:Pink Floyd:Dark Side Of The Moon:08 Brain Damage.m4a&quot;}


Also have a look at: About Scripting Terminology:

The terminology for an app is found in its scripting dictionary, an
.sdef file stored in the app bundle. The dictionary describes the
commands, classes, and properties an app supports. This information is
used by the scripting components of the operating system, the app
itself, and any other apps or scripts that interact with the app
through scripting. It also serves as a reference, which you can
consult in Script Editor for guidance as you write a script. See
Figure 10-1.
Figure 10-1Example of a scripting dictionary in Script Editor