Closed mimansajaiswal closed 2 years ago
This issue/pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in the next 7 days to keep our backlog clean. Thanks for your contributions.
Extension – Google Chrome
Author: @rgomezcasas
Cannot search tabs in Google Chrome
## Error: ``` Error: Command failed with exit code 1: osascript -e set _output to "" tell application "Google Chrome" set _window_index to 1 repeat with w in windows set _tab_index to 1 repeat with t in tabs of w set _title to get title of t set _url to get URL of t set _favicon to "" set _output to (_output & _title & "~~~" & _url & "~~~" & _favicon & "~~~" & _window_index & "~~~" & _tab_index & "\n") set _tab_index to _tab_index + 1 end repeat set _window_index to _window_index + 1 if _window_index > count windows then exit repeat end repeat end tell return _output 225:230: execution error: Google Chrome got an error: Connection is invalid. (-609) set _output to "" tell application "Google Chrome" set _window_index to 1 repeat with w in windows set _tab_index to 1 repeat with t in tabs of w set _title to get title of t set _url to get URL of t set _favicon to "" set _output to (_output & _title & "~~~" & _url & "~~~" & _favicon & "~~~" & _window_index & "~~~" & _tab_index & "\n") set _tab_index to _tab_index + 1 end repeat set _window_index to _window_index + 1 if _window_index > count windows then exit repeat end repeat end tell return _output 225:230: execution error: Google Chrome got an error: Connection is invalid. (-609) Er:google-chrome-go-to-tab.js:5:57 --- 2: `:` 3: `.charCodeAt(),n=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===n&&(e=e.slice(0,e.length-1)),e}});var Et=c((zo,B)=>{"use strict";var $=require("path"),vt=oe(),Tt=e=>{e=f({cwd:process.cwd(),path:process.env[vt()],execPath:process.execPath},e);let t,n=$.resolve(e.cwd),r=[];for(;t!==n;)r.push($.join(n,"node_modules/.bin")),t=n,n=$.resolve(n,"..");let o=$.resolve(e.cwd,e.execPath,"..");return r.push(o),r.concat(e.path).join($.delimiter)};B.exports=Tt;B.exports.default=Tt;B.exports.env=e=>{e=f({env:process.env},e);let t=f({},e.env),n=vt({env:t});return e.path=t[n],t[n]=B.exports(e),t}});var Pt=c((Vo,fe)=>{"use strict";var It=(e,t)=>{for(let n of Reflect.ownKeys(t))Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n));return e};fe.exports=It;fe.exports.default=It});var Ct=c((Yo,X)=>{"use strict";var or=Pt(),D=new WeakMap,At=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let n,r=0,o=e.displayName||e.name||"The current behavior
The expected behavior
Raycast version
Version: 1.37.1