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
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) |
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
# 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 |
NewerOlder