-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
André Haveman
authored and
André Haveman
committed
Jan 16, 2018
1 parent
a608878
commit e022d7d
Showing
4 changed files
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
tell application "Spotify" | ||
if repeating then | ||
set repeating to false | ||
else | ||
set repeating to true | ||
end if | ||
end tell | ||
tell application "Spotify" | ||
if repeating then | ||
set repeating to false | ||
else | ||
set repeating to true | ||
end if | ||
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
tell application "Spotify" | ||
if shuffling then | ||
set shuffling to false | ||
else | ||
set shuffling to true | ||
end if | ||
end tell | ||
tell application "Spotify" | ||
if shuffling then | ||
set shuffling to false | ||
else | ||
set shuffling to true | ||
end if | ||
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
on max(x, y) | ||
if x ≤ y then | ||
return y | ||
else | ||
return x | ||
end if | ||
if x ≤ y then | ||
return y | ||
else | ||
return x | ||
end if | ||
end max | ||
|
||
tell application "Spotify" to set sound volume to (my max(sound volume - 10, 0)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
on min(x, y) | ||
if x ≤ y then | ||
return x | ||
else | ||
return y | ||
end if | ||
if x ≤ y then | ||
return x | ||
else | ||
return y | ||
end if | ||
end min | ||
|
||
tell application "Spotify" to set sound volume to (my min(sound volume + 10, 100)) |