itunes is now Music

parent 5a8fd95e
#!/usr/bin/env bash
ITUNES_TRACK=$(osascript <<EOF
if appIsRunning("iTunes") then
tell app "iTunes" to get the name of the current track
if appIsRunning("Music") then
tell app "Music" to get the name of the current track
end if
on appIsRunning(appName)
......@@ -12,8 +12,8 @@ EOF)
if [[ ! -z "$ITUNES_TRACK" ]]; then
ITUNES_ARTIST=$(osascript <<EOF
if appIsRunning("iTunes") then
tell app "iTunes" to get the artist of the current track
if appIsRunning("Music") then
tell app "Music" to get the artist of the current track
end if
on appIsRunning(appName)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment