about summary refs log tree commit diff
path: root/tools/music/gettitle
diff options
context:
space:
mode:
author"Vincent Ambo ext:(%22) <tazjin@me.com>2012-02-22T21·03+0100
committer"Vincent Ambo ext:(%22) <tazjin@me.com>2012-02-22T21·03+0100
commitb951faa6b4771693f08b4002c771a508904d97a1 (patch)
tree93177791ac00c21ea864920db9ed6faefee4bea3 /tools/music/gettitle
* initial checkin
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'