Jump to content

sballin

Member
  • Posts

    61
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by sballin

  1. Updated the workflow with some better AppleScript methods, including one that searches note bodies. @deanishe the JSON is being output properly now using Foundation framework methods. Note bodies are obtained from AppleScript in HTML which I parse using regex (against all internet advice, but has been working so far—notes with HTML snippets are going to be less searchable). Let me know if there are better ways to grab the body text. I tried using JXA but found it was slower for me than AppleScript where I'm careful to access large objects as references. I looked into the new note fallback option but this seems difficult for script filters in Alfred, especially when Alfred handles narrowing the search results.
  2. That's a good idea, I'll put it on the to-do list! @wkoutre and @40-02 this bug is now fixed by the PR from @shortbread and an extra check I added. Packal and Github releases have been updated.
  3. Thanks for your contribution, this is great! @Jasondm007 was requesting this feature. Seems like people are into the full text search so we could make that the default and "search titles only" as an option. I'm on vacation for a week but will add this when I'm back. You can make a PR if you want and/or I'll make a list of contributors on the github page.
  4. Sure, here's the new thread: https://www.alfredforum.com/topic/11716-search-apple-notes-in-high-sierra-and-other-macos-versions/
  5. You were right, I did some more testing and it's actually the accessing the name of each container (folder) that's taking up time. Currently I'm doing it as set noteRefs to a reference to every note in default account set containers to container of noteRefs (inside the loop:) name of item i of containers So to make it fast I probably need to deal with references of the containers instead of the containers themselves, but I'm not sure how the syntax for that looks. For me the whole thing runs in less than 0.1 seconds without containers, and 2 seconds with them. Good point, I forgot about that. I henceforth ban unusual characters in note titles! I didn't know about JXA though, I'll look into it. Glad you like it. I poked around and couldn't easily find the note text in the SQL database. It might be easier to get with the AppleScript methods, but it wasn't immediately working for me, probably because they're stored in HTML and we want them as a string. I will try to look into it further. I'm happy to include searching the body too as an option, but I made it search titles only for now because I like the more specific search scope.
  6. I've created a workflow to find and open Apple/iCloud notes in Notes.app. Get it on Packal and feel free to open issues/make pull requests on GitHub.
  7. Hey guys, I made a version that works on High Sierra: http://www.packal.org/workflow/search-apple-notes It gives a couple options: - Use Python to open a SQL database and AppleScript to open the note directly (fast but I've only tested on High Sierra) - Use AppleScript to get all the note names and then find the requested note and open it (decently fast, should work for other OSes) - Use AppleScript to get all note+folder names then do the same as above (slow) If anyone is an AppleScript wizard, it seems like building the output string for Alfred takes the longest time, and this thing could be fast and cross-compatible if that was fixed.
  8. 10.11.3. The only kind of weird window manipulator I have running is Moom, and I tried quitting that with no effect.
  9. Using Alfred 2.8.2 currently, but this issue has been around for a long time for me. In Alfred's File Search mode, when I try to Quick Look a selected item using Shift, the Quick Look window opens behind the Alfred window. If I click on the Quick Look window it doesn't come to the foreground. If I click on the Alfred window the Quick Look window disappears. This happens every single time.
  10. That worked for a few of them. I still couldn't do that with a few like Adobe AIR Uninstaller, but in the end I dropped them into Spotlight's Privacy list and that worked. Thanks for your help!
  11. Hi, I upgraded to Alfred 2 and I'm loving it so far. But there a lot of applications that I don't want to have cluttering my results (a lot of Adobe uninstall helpers). These are in the same directory as applications that I use frequently, so I reckoned putting "Alfred:ignore" or "alfred:ignore" in the Spotlight comments from the Get Info window would do the trick. But this doesn't change the results at all, even if I restart Alfred. If I restart Finder these comments are cleared from the Get Info window. Any advice would be much appreciated!
×
×
  • Create New...