Once there was Libspotify SDK but it is no longer supported. This example comes from the official documentation that you can find here.įor Windows instead I would say that currently there is no clear way to do it. A delay is set added make sure the notification is shown long enough before the script ends Return currentArtist & " - " & currentTrackĭisplay notification "Currently playing " & trackName Set currentTrack to name of current track as string Set currentArtist to artist of current track as string Method to get the currently playing track Set currentlyPlayingTrack to getCurrentlyPlayingTrack() Spotify is exposing some API that you can use to query the state of your applicationįor example if you are on an Apple system you can use AppleScript API: - Creates a notification with information about the currently playing track
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |