aboutsummaryrefslogtreecommitdiff
path: root/segments/np_spotify_mac.script
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2017-04-20 19:37:10 -0600
committerCody Hiar <codyfh@gmail.com>2017-04-20 19:37:10 -0600
commit2dd809781527976307b47a598887062047e202c9 (patch)
tree8b29daba2c1ef072f380ef530b7e7d9256e43eb3 /segments/np_spotify_mac.script
parentbaeb698bb006193559fc5aa1901180a3ccc73b7a (diff)
Making tmux configuration much easier to manage
Diffstat (limited to 'segments/np_spotify_mac.script')
-rwxr-xr-xsegments/np_spotify_mac.script23
1 files changed, 0 insertions, 23 deletions
diff --git a/segments/np_spotify_mac.script b/segments/np_spotify_mac.script
deleted file mode 100755
index 91fbb63..0000000
--- a/segments/np_spotify_mac.script
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env osascript
-# Returns the current playing song in Spotify for OSX
-
-tell application "System Events"
- set process_list to (name of every process)
-end tell
-
-if process_list contains "Spotify" then
- tell application "Spotify"
- if player state is playing then
- set track_name to name of current track
- set artist_name to artist of current track
- #set album_name to album of current track
- set trim_length to 40
- set now_playing to artist_name & " - " & track_name
- if length of now_playing is less than trim_length then
- set now_playing_trim to now_playing
- else
- set now_playing_trim to characters 1 thru trim_length of now_playing as string
- end if
- end if
- end tell
-end if