Permalink
Browse files

Decompile .scpts to .applescripts

  • Loading branch information...
1 parent f2f4442 commit df7bc0cba3daf34679eebdfc67346f94313d28f2 @christineyen committed Sep 8, 2011
@@ -0,0 +1,26 @@
+set newline to "
+"
+
+tell application "System Events"
+ set MyList to (name of every process)
+end tell
+if (MyList contains "Spotify") is true then
+ tell application "Spotify"
+ set track_name to name of current track
+ set track_artist to artist of current track
+ set track_album to album of current track
+ set img_data to artwork of current track
+ end tell
+
+ tell application "GrowlHelperApp"
+ -- Make a list of the notifications this script will ever send.
+ set the notificationsList to {"Current Spotify Track"}
+
+ -- Register our script with Growl
+ -- You can optionally (as here) set a default icon
+ -- for this script's notifications.
+ register as application "Spotify Notifier Script" all notifications notificationsList default notifications notificationsList icon of application "Spotify"
+ set desc to track_artist & newline & track_album
+ notify with name "Current Spotify Track" title track_name description desc application name "Spotify Notifier Script" image img_data
+ end tell
+end if
Binary file not shown.
@@ -0,0 +1,6 @@
+tell application "System Events"
+ set MyList to (name of every process)
+end tell
+if (MyList contains "Spotify") is true then
+ tell application "Spotify" to next track
+end if
View
Binary file not shown.
@@ -0,0 +1,6 @@
+tell application "System Events"
+ set MyList to (name of every process)
+end tell
+if (MyList contains "Spotify") is true then
+ tell application "Spotify" to playpause
+end if
View
Binary file not shown.
@@ -0,0 +1,6 @@
+tell application "System Events"
+ set MyList to (name of every process)
+end tell
+if (MyList contains "Spotify") is true then
+ tell application "Spotify" to previous track
+end if
View
Binary file not shown.

0 comments on commit df7bc0c

Please sign in to comment.