Unverified Commit 8308f79a authored by Mohcine Chraibi's avatar Mohcine Chraibi
Browse files

itunes is now Music

parent 5a8fd95e
#!/usr/bin/env bash #!/usr/bin/env bash
ITUNES_TRACK=$(osascript <<EOF ITUNES_TRACK=$(osascript <<EOF
if appIsRunning("iTunes") then if appIsRunning("Music") then
tell app "iTunes" to get the name of the current track tell app "Music" to get the name of the current track
end if end if
on appIsRunning(appName) on appIsRunning(appName)
...@@ -12,8 +12,8 @@ EOF) ...@@ -12,8 +12,8 @@ EOF)
if [[ ! -z "$ITUNES_TRACK" ]]; then if [[ ! -z "$ITUNES_TRACK" ]]; then
ITUNES_ARTIST=$(osascript <<EOF ITUNES_ARTIST=$(osascript <<EOF
if appIsRunning("iTunes") then if appIsRunning("Music") then
tell app "iTunes" to get the artist of the current track tell app "Music" to get the artist of the current track
end if end if
on appIsRunning(appName) on appIsRunning(appName)
......
Supports Markdown
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