about summary refs log tree commit diff
path: root/tools/music/gettitle
diff options
context:
space:
mode:
Diffstat (limited to 'tools/music/gettitle')
-rwxr-xr-xtools/music/gettitle4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/music/gettitle b/tools/music/gettitle
new file mode 100755
index 000000000000..0bd4cc6979ec
--- /dev/null
+++ b/tools/music/gettitle
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+osascript -e 'tell application "iTunes" to get name of current track'
+osascript -e 'tell application "iTunes" to get artist of current track'