Skip to content
Snippets Groups Projects
Unverified Commit 8308f79a authored by Mohcine Chraibi's avatar Mohcine Chraibi
Browse files

itunes is now Music

parent 5a8fd95e
No related branches found
No related tags found
No related merge requests found
#!/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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment