content: #!/usr/bin/osascript
  
  # @raycast.schemaVersion 1
  # @raycast.title Output Audio to MacBook Pro (altavoces)
  # @raycast.mode silent
  
  # @raycast.packageName Audio
  # @raycast.icon 💻
  
  # @raycast.author mmerle
  # @raycast.authorURL https://github.com/mmerle
  # @raycast.description Switch audio output to desired device.
  
  set asrc to "MacBook Pro (altavoces)"
  
  tell application "System Preferences"
  
  	reveal anchor "output" of pane id "com.apple.preference.sound"
  
  	tell application "System Events"
  		tell process "System Preferences"
  			select (row 1 of table 1 of scroll area 1 of tab group 1 of window "Sonido" whose value of text field 1 is asrc)
  		end tell
  	end tell
  
  	quit
  
  end tell
  
  do shell script "echo Audio switched to MacBook Pro (altavoces)"
  