Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Set Audio Device] Crash When Include Airplay Devices is Enabled #15958

Open
rodrigo-arias opened this issue Dec 19, 2024 · 2 comments
Open

[Set Audio Device] Crash When Include Airplay Devices is Enabled #15958

rodrigo-arias opened this issue Dec 19, 2024 · 2 comments
Labels
bug Something isn't working extension: audio-device Issues related to the audio-device extension extension Issues related to one of the extensions in the Store

Comments

@rodrigo-arias
Copy link

Extension

https://raycast.com/benvp/audio-device

Raycast Version

1.88.4

macOS Version

15.1

Description

Error:

Error: Command failed with exit code 1: osascript -e 
    set devices to {}

    tell application "System Preferences"
      reveal pane id "com.apple.preference.sound"
    end tell
    tell application "System Events"
      tell application process "System Preferences"
        repeat until exists tab group 1 of window "Sound"
        end repeat
        tell tab group 1 of window "Sound"
          click radio button "Output"
          tell table 1 of scroll area 1
            set selected_row to (first UI element whose selected is true)
            set currentOutput to value of text field 1 of selected_row as text
            
            repeat with r in rows
              try
                set deviceName to value of text field 1 of r as text
                set deviceType to value of text field 2 of r as text
                set end of devices to { deviceName, deviceType }
              end try
            end repeat
          end tell
        end tell
      end tell
    end tell

    if application "System Preferences" is running then
      tell application "System Preferences" to quit
    end if
    
    return [ devices, "currentOutput", currentOutput ]
   
64:116: execution error: System Settings detectó un error: No puede obtenerse pane id "com.apple.preference.sound". (-1728)
    at D9 (/Users/tiresias/.config/raycast/extensions/2158713f-4712-4862-ba9a-3bce3cd07e3a/set-output-device.js:4:57)
    at /Users/tiresias/.config/raycast/extensions/2158713f-4712-4862-ba9a-3bce3cd07e3a/set-output-device.js:4:6400
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async fa (/Users/tiresias/.config/raycast/extensions/2158713f-4712-4862-ba9a-3bce3cd07e3a/set-output-device.js:38:6806)
    at async N0 (/Users/tiresias/.config/raycast/extensions/2158713f-4712-4862-ba9a-3bce3cd07e3a/set-output-device.js:38:6981)

Steps To Reproduce

  1. Enable "Include AirPlay devices"
  2. Access the "Set Output Device" menu

Current Behaviour

No response

Expected Behaviour

This issue has been reported nine times since 2022, with the most recent report in November. I believe this issue should remain open as Stalled, or the extension should be updated to remove the non-working option.

@rodrigo-arias rodrigo-arias added bug Something isn't working extension Issues related to one of the extensions in the Store labels Dec 19, 2024
@raycastbot raycastbot added the extension: audio-device Issues related to the audio-device extension label Dec 19, 2024
@raycastbot
Copy link
Collaborator

Thank you for opening this issue!

🔔 @benvp @mathieudutour @mike182uk @FezVrasta @rcruzper @thomaspaulmann @arthur-fontaine @pernielsentikaer you might want to have a look.

💡 Author and Contributors commands

The author and contributors of benvp/audio-device can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot close as not planned Closes the issue as not planned.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopens the issue.
  • @raycastbot assign me Assigns yourself to the issue.
  • @raycastbot good first issue Adds the "Good first issue" label to the issue.
  • @raycastbot keep this issue open Make sure the issue won't go stale and will be kept open by the bot.

@arthur-fontaine
Copy link
Contributor

This issue has been reported nine times since 2022

Yes but I can't reproduce it.

If you have the time, fix it on your computer and submit a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working extension: audio-device Issues related to the audio-device extension extension Issues related to one of the extensions in the Store
Projects
None yet
Development

No branches or pull requests

3 participants