Skip to content

Instantly share code, notes, and snippets.

@poritsky
Created December 2, 2012 20:01
Show Gist options
  • Save poritsky/4190751 to your computer and use it in GitHub Desktop.
Save poritsky/4190751 to your computer and use it in GitHub Desktop.
Current iTunes Track to Text Applescript
# Get current song, album and artist from iTunes.
#
# Intended for use with Smile Software's TextExpander:
# http://www.smilesoftware.com/TextExpander/index.html
#
# Set up as a snippet to turn current track into text. A nice way to spin your wheels while writing/coding/contemplating the shape of the universe.
tell application "iTunes"
set current_song to the name of current track
set current_artist to the artist of current track
set current_album to the album of current track
end tell
-- Change formatting to your liking here.
return "Currently listening to \"" & current_song & "\" by " & current_artist & " on " & current_album
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment