rzagreb Posted September 12 Share Posted September 12 Alfred-notes-workflow This Alfred Workflow helps you use the Notes.app more easily. Here's how it works: Search Notes: Search through your notes without opening the Notes app. The results appear in a list. Once you find the note you want, you can open it directly from Alfred. Create New Notes: Create a new note right from Alfred. Just type what you want to save, and it will automatically be added to the Notes app. Installation Download the latest version of the Alfred Notes Workflow from the Releases page. Vero 1 Link to comment
FireFingers21 Posted September 12 Share Posted September 12 Welcome to the forum! Sharing a first workflow is always exciting. Out of curiosity, is the goal of your workflow different from what this other workflow already does? https://github.com/sballin/alfred-search-notes-app TomBenz 1 Link to comment
vitor Posted September 12 Share Posted September 12 2 hours ago, FireFingers21 said: Out of curiosity, is the goal of your workflow different from what this other workflow already does? One difference I see right off the bat is that this one does not have an unsigned binary. So even if the goal ends up being the same, that different tradeoff would make it appealing to someone. And it uses GUI configuration, which you in particular (as the maker of very good configs) might appreciate. @rzagreb I do have a few suggestions for quick improvements, on a first glance:Having <nn> as Subtext is atypical, and I don’t think most users will understand that.Always prefer with input as argv over with input as {query}.Haven’t tested this one but you shouldn’t need to import Cocoa and Foundation. stdlib is enough to get the variable. Technically you don’t even need that..Consider making keywords user-configurable and having longer defaults.Titles are inconsistent. One mentions Notes.app while another mentions notes.Those are all small things (expected from a 0.0.1!) that tidying up will improve on stability and general feel. Welcome to the forum! And thank you for sharing. Link to comment
rzagreb Posted September 13 Author Share Posted September 13 Thank you for the review and the helpful advice! Quote Out of curiosity, is the goal of your workflow different from what this other workflow already does? My goal was to create a very streamlined version of notes that relies solely on built-in Apple features, without requiring any third-party dependencies. Quote Having <nn> as Subtext is atypical, and I don’t think most users will understand that. Always prefer with input as argv over with input as {query}. Haven’t tested this one but you shouldn’t need to import Cocoa and Foundation. stdlib is enough to get the variable. Technically you don’t even need that.. Consider making keywords user-configurable and having longer defaults. Titles are inconsistent. One mentions Notes.app while another mentions notes. I wasn’t aware of some of these Alfred features before, so I really appreciate the suggestions! I’ve implemented most of your recommendations, but ran into some issues when using argv instead of {query}, so I decided to stick with {query} for now. Link to comment
FireFingers21 Posted September 14 Share Posted September 14 @rzagreb Nice! Looking forward to seeing the workflow evolve! Also, I was able to get argv working by modifying the beginning of your script filter code like so: function run(argv) { ObjC.import('stdlib'); const app = Application('Notes'); const query = argv[0].toLowerCase(); const notes = app.notes.whose({ name: { _contains: query } })(); I added argv as an argument to the run() function and replaced '{query}' in your variable declaration to argv[0]. vitor 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now