raycast / extensions

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

[Apple Notes] Search displays note with old title leading to error #2768

Closed al3xandru closed 1 year ago

al3xandru commented 2 years ago

Extension – Apple Notes

Author: @tumispro

Description

Index seems to be out of date as the title of the note is not the real one.

The current behavior

Error: Command failed with exit code 1: osascript -e tell application "Notes" 
show note "Travel Checklist Template" 
end tell
23:65: execution error: Notes got an error: Can’t get note "Travel Checklist Template". (-1728)

show note "Travel Checklist Template" 
end tell
w4:index.js:5:57

---
2: `:`
3: `.charCodeAt(),t=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e}});var df=n((Ype,Ri)=>{"use strict";var Mi=require("path"),lf=ws(),pf=e=>{e=De({cwd:process.cwd(),path:process.env[lf()],execPath:process.execPath},e);let r,t=Mi.resolve(e.cwd),i=[];for(;r!==t;)i.push(Mi.join(t,"node_modules/.bin")),r=t,t=Mi.resolve(t,"..");let a=Mi.resolve(e.cwd,e.execPath,"..");return i.push(a),i.concat(e.path).join(Mi.delimiter)};Ri.exports=pf;Ri.exports.default=pf;Ri.exports.env=e=>{e=De({env:process.env},e);let r=De({},e.env),t=lf({env:r});return e.path=r[t],r[t]=Ri.exports(e),r}});var mf=n((Kpe,Ms)=>{"use strict";var gf=(e,r)=>{for(let t of Reflect.ownKeys(r))Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t));return e};Ms.exports=gf;Ms.exports.default=gf});var hf=n((Xpe,Un)=>{"use strict";var n4=mf(),kn=new WeakMap,qf=(e,r={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let t,i=0,a=e.displayName||e.name||"<anonymous>",u=function(...p){if(kn.set(u,++i),i===1)t=e.apply(this,p),e=null;else if(r.throw===!0)throw new Error(`Function \`${a}\` can only be called once`);return t};return n4(u,e),kn.set(u,i),u};Un.exports=qf;Un.exports.default=qf;Un.exports.callCount=e=>{if(!kn.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return kn.get(e)}});var vf=n(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.SIGNALS=void 0;var u4=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];Ln.SIGNALS=u4});var 
[…]
---

index.js:5:10540
async Xn:index.js:9:120027
async t:index.js:88:244

Raycast version

Version: 1.39.2 Extensions: up-to-date

stale[bot] commented 1 year 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.

al3xandru commented 1 year ago

@tumispro are you still in charge of this repo?

stale[bot] commented 1 year ago

This 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 😊

stale[bot] commented 1 year ago

I'm closing this 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.