Skip to content

Instantly share code, notes, and snippets.

View jwmann's full-sized avatar
🎯
Focusing

James W Mann jwmann

🎯
Focusing
View GitHub Profile
@jwmann
jwmann / AddiTunesFromVLC.scpt
Created March 3, 2016 20:13
This is an AppleScript to allow the ability to select a song from a VLC playlist and Add the song to your iTunes Library.
global songAdded
global selectedSong
# This variable is used as a boolean to see if a file has been added to iTunes or not
set songAdded to false
# This variable is used to store the alias location of the song to be deleted / added
set selectedSong to false
getSong()
addSong(selectedSong)
@jwmann
jwmann / ToggleOutputDevice.scpt
Created March 3, 2016 02:03
This is an AppleScript to toggle between 2 Sound Output Devices. Set your own Devices to toggle on lines 32 and 33
# Tell our specifc panel options to wake up.
tell application "System Preferences"
reveal anchor "output" of pane id "com.apple.preference.sound"
end tell
# Save our Current Output Device as well as a List of Available Output Devices.
tell application "System Events"
tell process "System Preferences"
tell window "Sound"
tell tab group 1