Skip to content

Commit

Permalink
Make indentation consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
André Haveman authored and André Haveman committed Jan 16, 2018
1 parent a608878 commit e022d7d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
14 changes: 7 additions & 7 deletions lib/scripts/toggle_repeating.applescript
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
14 changes: 7 additions & 7 deletions lib/scripts/toggle_shuffling.applescript
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
10 changes: 5 additions & 5 deletions lib/scripts/volume_down.applescript
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))
10 changes: 5 additions & 5 deletions lib/scripts/volume_up.applescript
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))

0 comments on commit e022d7d

Please sign in to comment.