Skip to content

Instantly share code, notes, and snippets.

View superirale's full-sized avatar
🏠
Working from home

Usman Irale superirale

🏠
Working from home
View GitHub Profile
@joshuaswilcox
joshuaswilcox / current_song
Last active September 2, 2023 14:12
Applescript to show current playing song and determine if its spottily or iTunes that is playing
if application "Spotify" is running and application "iTunes" is not running then
tell application "Spotify"
if player state is stopped then
set display to "No Track Playing"
else
set track_artist to artist of current track
set track_name to name of current track
set track_duration to duration of current track
set seconds_played to player position
set state to ""