summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Conchillo FlaquƩ <aconchillo@gmail.com>2022-01-21 15:37:07 -0800
committerAleix Conchillo FlaquƩ <aconchillo@gmail.com>2022-01-21 15:37:07 -0800
commit9d856378f6e708849b1896fffe7817edf50d71cd (patch)
tree98925184eccda4378ef566682c6ed7743d467868
parent4b6d08b2c3fcc6545f0eaea49194792ec3e7e9b5 (diff)
examples: add simple spotify test
-rw-r--r--examples/spotify.gs7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/spotify.gs b/examples/spotify.gs
new file mode 100644
index 0000000..9f8ff93
--- /dev/null
+++ b/examples/spotify.gs
@@ -0,0 +1,7 @@
+;; -*- mode: scheme; coding: utf-8; -*-
+
+(define spotify (Application "Spotify"))
+
+(.playpause spotify)
+
+(log:info (.name (.currentTrack spotify)) "by" (.artist (.currentTrack spotify)))