Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonMeier committed May 16, 2016
2 parents ecbee4d + d4656a9 commit 7049094
Show file tree
Hide file tree
Showing 11 changed files with 102 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,17 @@ We have added a few pre-made scripts that you can find in this repository. All o
* `spotify-PlayPause.AppleScript` Play or Pause the music. Also works with Spotify connect.
* `spotify-PreviousTrack.AppleScript` Moves to the previous track. Also works with Spotify connect.

**VLC**

* `vlc-Fullscreen.AppleScript` Toggle fullscreen.
* `vlc-Mute.AppleScript` Toggle mute.
* `vlc-NextPlaylistItem.AppleScript` Jump to next item in playlist.
* `vlc-PlayPause.AppleScript` Toggle play/pause.
* `vlc-PreviousPlaylistItem.AppleScript` Jump to previous item in playlist.
* `vlc-StepBackward.AppleScript` Step backward. Step length can be configured.
* `vlc-StepForward.AppleScript` Step forward. Step length can be configured.
* `vlc-StopPlayback.AppleScript` Stop the current playback.
* `vlc-VolumeDown.AppleScript` Decrease volume by one step. Step length can be configured.
* `vlc-VolumeUp.AppleScript` Increase volume by one step. Step length can be configured.


8 changes: 8 additions & 0 deletions scripts/VLC/vlc-Fullscreen.AppleScript
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/osascript
# Toggle VLC fullscreen mode.

if running of application "/Applications/VLC.app" is true then
tell application "/Applications/VLC.app"
fullscreen
end tell
end if
8 changes: 8 additions & 0 deletions scripts/VLC/vlc-Mute.AppleScript
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/osascript
# Mute or unmute the VLC audio playback.

if running of application "/Applications/VLC.app" is true then
tell application "/Applications/VLC.app"
mute
end tell
end if
8 changes: 8 additions & 0 deletions scripts/VLC/vlc-NextPlaylistItem.AppleScript
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/osascript
# Jump to next item in playlist.

if running of application "/Applications/VLC.app" is true then
tell application "/Applications/VLC.app"
next
end tell
end if
8 changes: 8 additions & 0 deletions scripts/VLC/vlc-PlayPause.AppleScript
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/osascript
# Play or Pause the current playlist item

if running of application "/Applications/VLC.app" is true then
tell application "/Applications/VLC.app"
play
end tell
end if
8 changes: 8 additions & 0 deletions scripts/VLC/vlc-PreviousPlaylistItem.AppleScript
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/osascript
# Jump to previous item in playlist.

if running of application "/Applications/VLC.app" is true then
tell application "/Applications/VLC.app"
previous
end tell
end if
9 changes: 9 additions & 0 deletions scripts/VLC/vlc-StepBackward.AppleScript
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/osascript
# Step backward. The step width can be changed below.

if running of application "/Applications/VLC.app" is true then
tell application "/Applications/VLC.app"
# Step width (1=extraShort, 2=short, 3=medium, 4=long).
step backward 2
end tell
end if
9 changes: 9 additions & 0 deletions scripts/VLC/vlc-StepForward.AppleScript
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/osascript
# Step forward. The step width can be changed below.

if running of application "/Applications/VLC.app" is true then
tell application "/Applications/VLC.app"
# Step width (1=extraShort, 2=short, 3=medium, 4=long).
step forward 2
end tell
end if
8 changes: 8 additions & 0 deletions scripts/VLC/vlc-StopPlayback.AppleScript
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/osascript
# Stop playing the current playlist item.

if running of application "/Applications/VLC.app" is true then
tell application "/Applications/VLC.app"
stop
end tell
end if
11 changes: 11 additions & 0 deletions scripts/VLC/vlc-VolumeDown.AppleScript
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/osascript
# Decrease volume by one step. There are a total of 32 steps.
# If you want to decrease the volume more on each execution then just uncomment the second volumeDown below.

if running of application "/Applications/VLC.app" is true then
tell application "/Applications/VLC.app"
volumeDown
# Uncomment next line for more decrease..
# volumeDown
end tell
end if
11 changes: 11 additions & 0 deletions scripts/VLC/vlc-VolumeUp.AppleScript
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/osascript
# Increase volume by one step. There are a total of 32 steps.
# If you want to increase the volume more on each execution then just uncomment the second volumeUp below.

if running of application "/Applications/VLC.app" is true then
tell application "/Applications/VLC.app"
volumeUp
# Uncomment next line for more increase..
# volumeUp
end tell
end if

0 comments on commit 7049094

Please sign in to comment.