Comments (10)
Are you using the latest version, 1.4.3? If it's still not working please post the text in the debug log after you try to find and open a note. Take care to remove any private note contents if they show up there.
from alfred-search-notes-app.
from alfred-search-notes-app.
It works for me in Alfred 3 and Catalina. If you post the info from the debug log I may be able to help.
from alfred-search-notes-app.
from alfred-search-notes-app.
Follow the instructions here to open the debug log: https://www.alfredapp.com/help/workflows/advanced/debugger/
Then try to use the workflow and see the output that appears in the debug log.
from alfred-search-notes-app.
It seems Apple Script support in the Notes.app is broken in Catalina if iCloud Sync is enabled.
The following thread is from another application but the issue seems to be the same:
https://hookproductivity.com/help2/integration/hook-and-macos-10-15-catalina-notes-app/
This is the error I'm getting right now:
[8:11:25.813 PM] ERROR: Search Notes.app[Run NSAppleScript] {
NSAppleScriptErrorAppName = Notes;
NSAppleScriptErrorBriefMessage = "AppleEvent handler failed.";
NSAppleScriptErrorMessage = "Notes got an error: AppleEvent handler failed.";
NSAppleScriptErrorNumber = "-10000";
NSAppleScriptErrorRange = "NSRange: {67, 20}";
from alfred-search-notes-app.
Thanks for the helpful info! Weirdly, I can't reproduce this. I was testing with "on my mac" notes on Catalina 10.15 + Alfred 3 before, but I upgraded to 10.15.1 and added my iCloud notes, and it continued to work. In Script Editor.app, can you try the following?
tell application "Notes" to return every note in default account
then after getting the list of x-coredata://...
urls, copy one of them and try
tell application "Notes" to show note id "x-coredata://..." in default account
You can also play with removing in default account
.
from alfred-search-notes-app.
One more question, your error happens after you successfully get the list of notes then try to open one, right?
I looked into whether it might be a permissions thing. In System Preferences -> Security & Privacy -> Privacy tab, under "Automation" I gave permission to Notes, which appears with a checkbox under Alfred 3. When I removed that permission, I got a different error, number -1743 with message "Not authorized to send Apple events to Notes."
from alfred-search-notes-app.
The error happens in the Show note or folder with given ID
RunNSAppleScript action. The Notes listing works fine for me. Additionally I've checked the permissions and they look ok to me:
Update: I've just added in default account
to the AppleScript and now it works!
on alfred_script(q)
tell application "Notes"
if q contains "Note"
show note id q in default account
else
show folder id q in default account
end if
end tell
end alfred_script
I'm only storing notes in my default account, so this is a good workaround for me.
from alfred-search-notes-app.
I'm glad it works now, this was the fix in release 1.4.3, though it's also working without in default account
for me on Catalina too... strange!
from alfred-search-notes-app.
Related Issues (20)
- Unable to Search Notes in Alfred 5 HOT 3
- Search note doesn't work on MacOS Ventura HOT 4
- notes open in All iCloud folder in Mac OS Ventura HOT 2
- Create Note Error HOT 2
- A bug occurs when creating a note HOT 3
- Operation not permitted, Ventura 13.2.1 HOT 12
- Create Note Error HOT 1
- Shift previews not showing HOT 1
- Cannot look for a specific note if Notes app already open - ERROR line 2: /usr/bin/python2: No such file or directory HOT 1
- Can't search notes after reinstalling OS (21 November 2023) HOT 1
- Just wont work..... HOT 2
- Should it work under Sonoma? HOT 2
- Cursor not set when creating new note HOT 13
- panic: unable to open database file: operation not permitted HOT 2
- Hope to be able to directly copy the title + body text. HOT 2
- Text view from Alfred >= 5.5
- 打不开,不能使用 HOT 3
- Opening a note pauses for multiple seconds HOT 4
- Formatting of linked note for Mac/iOS no longer working HOT 2
- "Show Note Error -1743: Not authorized to send Apple events to Notes HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alfred-search-notes-app.