raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.23k stars 2.93k forks source link

[Google Chrome] ...Command failed with exit code 1: osascript -e #5944

Closed xiaobili closed 1 year ago

xiaobili commented 1 year ago

Extension

https://www.raycast.com/Codely/google-chrome

Description

Error:

Error: Command failed with exit code 1: osascript -e 
    tell application "Google Chrome"
      activate
      tell window 1
          set newTab to make new tab with properties {URL:"https://chat.openai.com/chat"} 
      end tell
    end tell
    return true

97:162: execution error: “Google Chrome” Encountered an error: Cannot get "window 1". invalid index。 (-1719)

tell application "Google Chrome"
  activate
  tell window 1
      set newTab to make new tab with properties {URL:"https://chat.openai.com/chat"} 

Steps To Reproduce

  1. Close Google Chrome
  2. open racast command env
  3. input bookmark command
  4. choose a book mark then open
  5. Ultimately unable to open bookmark

Current Behaviour

Error: Command failed with exit code 1: osascript -e tell application "Google Chrome" activate tell window 1 set newTab to make new tab with properties {URL:"https://chat.openai.com/chat"} end tell end tell return true

97:162: execution error: “Google Chrome” Encountered an error: Cannot get "window 1". invalid index。 (-1719)

tell application "Google Chrome" activate tell window 1 set newTab to make new tab with properties {URL:"https://chat.openai.com/chat"}

Expected Behaviour

it should open the tab immediately

raycastbot commented 1 year ago

Thank you for opening this issue!

🔔 @rgomezcasas @bromanko @crisboarna @andreaselia @rtyke @karolre @Aiee you might want to have a look.

💡 Tip: Once the issue is resolved, comment @raycastbot close this issue to close it.

raycastbot commented 1 year ago

This issue has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 10 days to keep our backlog clean 😊

raycastbot commented 1 year ago

This issue has been automatically closed due to inactivity.

Feel free to comment in the thread when you're ready to continue working on it 🙂

You can also catch us in Slack if you want to discuss this.