Jump to content

surrealroad

Member
  • Content Count

    264
  • Joined

  • Last visited

  • Days Won

    13

Everything posted by surrealroad

  1. Thanks for that @deanishe. There are a couple of options that could be pursued, but they're all significant and they're all theoretical. I'd love to be able to experiment and figure this out but I just don't have the time. So, realistically, I'm waiting to see if someone else finds a way to access the notes in an easy way, and if so I can try something similar in this workflow. I am not holding my breath though. Unfortunately Apple just doesn't care about making this stuff work outside of their native apps, particularly outside of iOS. That's fine-- the native notes app works well enough for what it does for a large segment of the userbase. It was exactly the same story with my reminders workflow a few years back- things changed under the hood making it too difficult to get the list of reminders into Alfred, but there's still value in using Alfred to create reminders (likewise using this workflow to create notes quickly, I hope). Hopefully someone will just create some kind of API or something that lets you access this data easily on macOS and I'll be able to take a fresh look at it, but right now, sorry not going to happen
  2. Looks like Apple changed the way notes are stored (they're now in a single database file), so the current method of searching them no longer works. There might be a way to make it work, but I'll need to do some research.
  3. Thanks Andrew, sorry for the delay, I was away on vacation. I've just tested on build 874 high sierra b9 and it's looking good!
  4. It's the current release version. Works fine except on High Sierra.
  5. Apologies, by "nothing" I meant "no errors or anything out of the ordinary" Here's the output when I try to run: Starting debug for 'Reminders for Alfred 3' [2017-09-06 15:26:44][input.scriptfilter] Queuing argument 's' [2017-09-06 15:26:44][input.scriptfilter] Queuing argument 'so' [2017-09-06 15:26:44][input.scriptfilter] Queuing argument 'som' [2017-09-06 15:26:45][input.scriptfilter] Queuing argument 'some' [2017-09-06 15:26:45][input.scriptfilter] Script with argument 'some' finished [2017-09-06 15:26:45][STDERR: input.scriptfilter] /Users/jack/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.CDB1A90A-8ABD-4114-9CBC-2E7B38B91258/chrono.min.js [2017-09-06 15:26:45][input.scriptfilter] {"items":[{"title":"Add Reminder","arg":-1,"valid":true,"subtitle":"Create a new reminder to \"some\"","icon":{"path":""}}],"variables":{"reminders":"[{\"arg\":-1,\"text\":\"some\",\"body\":\"\",\"date\":\"\",\"list\":\"\",\"priority\":null,\"application\":\"\"}]","quitAfter":"false"}} [2017-09-06 15:26:45][input.scriptfilter] Queuing argument 'somet' [2017-09-06 15:26:45][input.scriptfilter] Queuing argument 'someth' [2017-09-06 15:26:45][input.scriptfilter] Queuing argument 'somethi' [2017-09-06 15:26:45][input.scriptfilter] Queuing argument 'somethin' [2017-09-06 15:26:45][input.scriptfilter] Queuing argument 'something' [2017-09-06 15:26:45][input.scriptfilter] Script with argument 'something' finished [2017-09-06 15:26:45][STDERR: input.scriptfilter] /Users/jack/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.CDB1A90A-8ABD-4114-9CBC-2E7B38B91258/chrono.min.js [2017-09-06 15:26:45][input.scriptfilter] {"items":[{"title":"Add Reminder","arg":-1,"valid":true,"subtitle":"Create a new reminder to \"something\"","icon":{"path":""}}],"variables":{"reminders":"[{\"arg\":-1,\"text\":\"something\",\"body\":\"\",\"date\":\"\",\"list\":\"\",\"priority\":null,\"application\":\"\"}]","quitAfter":"false"}}
  6. nothing in the debugger, and all other workflows are fine. but AFAIK none of the other workflows are using JXA. returning it
  7. Since beta 7 of macOS High Sierra, I've been having issues with Alfred (v3.4.1) not allowing items to be actioned. For example, given this JSON output from a osascript (JS): { "items": [{ "title": "Add Reminder", "arg": -1, "valid": true, "subtitle": "Create a new reminder to \"something\"", "icon": { "path": "" } }], "variables": { "reminders": "[{\"arg\":-1,\"text\":\"something\",\"body\":\"\",\"date\":\"\",\"list\":\"\",\"priority\":null,\"application\":\"\"}]", "quitAfter": "true" } } (expanded for readability) I get the action showing up in Alfred, but it behaves as if `valid` was set to `false`. In other words, pressing enter doesn't do anything. Prior to beta 7, this had been working fine. I can't find what I could change in my code to resolve this.
  8. Everyone with issues, if you could post them on Github, I'll try to get them resolved.
  9. Should be fixed now, sorry about that!
  10. FYI the latest version (v73) now includes an external trigger. I just tested it with the "this" keyword, and it seems to work correctly:
  11. Not really. I will think about maybe enabling triggers on the workflow to allow for this. However you can at least do this: Create a new workflow like so: In the Run NSAppleScript: on alfred_script(q) tell application "Alfred 3" to search "r this" end alfred_script This will prepopulate Alfred with "r this" when you press your hotkey, so all you need to do is press enter
  12. Hi everyone. The new version is now live, if you are using macOS 10.12 and Alfred v3, I encourage you to update. Please see the first post with download links and updated usage instructions. Refer to the changelog at the bottom for more details about the changes. Thanks everyone for your feedback, and sorry it took such a long time to get this update out!
  13. Updated the beta version to v69, which brings back support for lists. Lists To choose a list to use on a per-reminder basis, type in <list name> list right at the end of the command, for example r Get Santa outfit !2 in Christmas list. If a matching list can't be found, you won't be able to action the command. In all other cases, the default Reminders list will be used (typically the first one). If you prefer, you can edit the defaultList variable within the workflow's Arg and Vars node (note that you'll have to edit this each time you upgrade the workflow however). To download the beta: http://bit.ly/2gkUsQf
  14. Updated the beta version to v68, which brings back support for applications via "r this". Apps Get reminded about the app you're using, for example the selected file in Finder, or the current tab in Chrome or Safari. To create a reminder about the active app, simply type r this. Or keep typing to set a date, priority or a custom title, for example r this drop some sick beats on Friday !!!. The following apps are currently supported: Adobe Acrobat (Pro/DX) Chromium Contacts Finder FoldingText Google Chrome Google Chrome Canary Mail Microsoft PowerPoint Microsoft Word Safari TextEdit TextMate Vienna WebKit Apps can be added on request. Just raise an issue with the app you use. As long as it's freely available and has AppleScript support, it can be added. To download the beta: http://bit.ly/2gkUsQf
  15. Updated the beta version to v66, which brings back support for priorities. Priority To set the priority of the reminder, either use exclamation marks right at the start or end of the command (! for low priority, !! for medium priority, !!! for high priority), or type the priority right at the end of the command (these can also be abbreviated, for example mp or p lo). For example: r !!! in 2 weeks an important meeting r thursday have a banana medium priority r decide what to have for lunch !lo r make a turkey sandwich p3 To download the beta: http://bit.ly/2gkUsQf
  16. This should be fixed now in v65 http://bit.ly/2gkUsQf
  17. ok interesting. it seems like we're hitting that same Apple bug that prevents showing reminders inside Alfred. I will rewrite it and post an update.
  18. Heh I'm not sure what happened there. I'll check my profile settings. Nope, doesn't look like I can change it back. Must be something they've changed in the forum software.
  19. Hello everyone. I have a new beta version available. This has been rewritten from the ground up in JavaScript for Automation. It now requires Alfred v3+, MacOS Sierra+. NEW: Enhanced date/time natural language parsing. Never worry about the correct syntax again! NEW: Better messaging about what will happen when actioning the item. FIXED: (Hopefully) improved performance. However, there are still several features from the previous version that have not yet been carried across to this version. As such, this should be considered a beta version. The following are currently missing: • Support Lists • Support Apps • Auto-update support • "help" keyword • Note created notification • Quit reminders automatically • Support priority If you: Don't mind trying this out Have Alfred version 3 Are using macOS Sierra Don't need any of the absent features Then please feel free to give it a spin: http://bit.ly/2gkUsQf
  20. Hi can you check you are using this version of the workflow: http://bit.ly/1UlcR8F It appears that you upgraded from Alfred V2 to V3 and it can't store your preferences properly. Failing that, please try manually creating a folder at /Users/XXXX/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data and see if it then works.
  21. Please see the first post. *Only* creating reminders are supported. in Mac OS 10.12.
  22. Yeah that's the right one. I don't maintain the packal page any more, it probably refers to the pre-icloud version.
×
×
  • Create New...