Code Monkey home page Code Monkey logo

alfred-reminders's Introduction

alfred-reminders

This repo is no longer actively developed. I will review pull requests but not respond to issues or requests. Unfortunately I have been unable to keep up with the changes Apple makes to reminders in every OS release without warning.

This creates a new reminder in Apple Reminders

Download the latest version, for Alfred v3 and macOS

More information at Alfred Forums

Usage

To use, just type r <some text> into Alfred.

For example, r check out some of Alfred's other workflows will create a new reminder called "check out some of Alfred's other workflows".

You can also include times and dates in the text and have Alfred set a reminder for that particular time.

r this will capture the current application and turn it into a reminder.

r help will show some built-in examples.

Dates

To be reminded at a specific date/time, simply type a date into the command, for example:

  • r today release the hamsters into the wild
  • r tomorrow bring about financial ruin upon my enemies
  • r in 5 minutes drop everything
  • r in 2 hours laugh out loud
  • r on 24/12/13 forget everything I know about things in movies
  • r on 12 June 15 come up with some interesting ideas
  • r on 31-12-99 23:22 panic about the millennium bug
  • r at 2pm wait for nothing in particular
  • r next thursday at 15.30 ask some difficult questions

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

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. For single-word lists you can now use the shortcut @ <list name>. 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).

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
  • Chromium
  • Contacts
  • Finder
  • FoldingText
  • Brave Browser
  • Microsoft Edge
  • Google Chrome
  • Google Chrome Canary
  • Mailplane
  • Mail
  • Microsoft PowerPoint
  • Microsoft Word
  • Microsoft Excel
  • 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.

Getting help

r help will display the above examples

All sorts of combinations are possible!

Configuration

If you want to change the default reminder list, edit the variables component at the top of the workflow, otherwise it will just use the first one (unless you use "in Y list" at the end).

To reverse the priority so p1 is the highest and p3 is the lowest priority, change the reverse_priority under the Workflow Environment Variables.

External trigger

To call the workflow as an external trigger, use applescript such as

tell application "Alfred 4" to run trigger "remind" in workflow "com.surrealroad.alfred-reminder" with argument "something tomorrow at 5pm"

Building from source

In Alfred create a new Blank Workflow, then right-click and choose Open In Finder. Then replace all the files with this source.

Acknowledgements

Date parsing is done via chrono.js

Uses icons from the Flurry collection by David Lanham / The Icon Factory

alfred-reminders's People

Contributors

catgsmith avatar devguydavid avatar itoumlilt avatar narol1024 avatar ranaroussi avatar saeedmahani avatar surrealroad avatar willgorman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alfred-reminders's Issues

10.10 Yosemite Breaks Workflow

On the 10.10 Yosemite Public Beta, opening the Reminders application while the workflow is installed causes the tccd process to take up a disproportionately high amount of processor power (~80-100%) and freeze the Reminders application.

Request

Love the workflow. Thank you for it.

However I mostly use the 'r today ...' command and if you can please make it so I don't have to type the whole of the 'today' word.

ie change it from 'r today make pancakes' to 'r t make pancakes'

change from 'today' to 't' if you can.

Thank you in advance.

Default list

Hi,
I have my default reminders list to my iCloud account, but the workflow create the entries in the "on my Mac" list. (v10.11)
Sorry to bother, but couldn't find where the script sets the folder.
Thanks,

rs.-

[FR] Better messaging on in-progress parsing

//Was: Date/Time related commands not working in Alfred 3 on OSX 10.11.5

Been using this for a few days and it's a great workflow! But I'm having issues where commands that start with a date keywork (today, tomorrow, or a date string) or simply a time (at 6pm) result in a "Reminder command not recognized" message. I looked at some other tickets and went through the more recent forum posts but couldn't find anything that worked.

I tried uninstalling and reinstalling and also repairing disk permissions and when I run 'rtest' get the output below (which seems to indicate that things are fine). What else can I do to provide info to help debug? Would love to keep using this as shared lists are an important part of my team workflows. Thanks!

Test results:
OS version: 10.11.5 (0 seconds)
Current date: Thursday, June 23, 2016 at 12:34:23 PM (0 seconds)
Initialize workflow path: /Users/lrhyne/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.3598351E-2D79-4D11-9F23-2747AC0BD8C3 (0 seconds)
Initialize alfred-library: OK (0 seconds)
Initialize update-library: OK (0 seconds)
Initialize wf-library: OK (0 seconds)
Initialize plist-library: OK (0 seconds)
Reminders.app state: Running (0 seconds)
Fetch reminder count: 12 (3 seconds)
Fetch reminder info: OK (4 seconds)
Fetch reminder list count: 3 (0 seconds)
Fetch reminder list info: OK (0 seconds)
Run cache process: SKIPPED (0 seconds)
Fetch cache timestamp: SKIPPED (0 seconds)
Fetch cached reminder count: SKIPPED (0 seconds)
Test basic query: OK (0 seconds)
Test today query: OK (0 seconds)
Test in n minutes query: OK (0 seconds)
Test in n hours query: OK (0 seconds)
Test in n days query: OK (0 seconds)
Test in n days y hours query: OK (0 seconds)
Test in n hours y minutes query: OK (0 seconds)
Test at time query: OK (0 seconds)
Test tomorrow at time query: OK (0 seconds)
Test in x list query: OK (0 seconds)
Subtitle generation: OK (0 seconds)
Test basic reminder filtering: OK (0 seconds)
Test remind today reminder filtering: OK (0 seconds)
Test due tomorrow reminder filtering: OK (0 seconds)
Test reminder list filtering: OK (0 seconds)
Test version-check response: OK (0 seconds)
Current unix time: 1.46671047E+9 (0 seconds)
Simple JSON: OK (0 seconds)
Test execution time: 7 seconds

Support for Mailplane 3

As a user of the alfred-reminders plugin and Mailplane 3 I want to be able to create reminders directly from Mailplane 3 when I have a message open so that I don't have to deal with copying and pasting or retyping information from emails to the Reminders app.

Processing request is super slow

I just updated this workflow to version v63 since my old one from months ago stopped working on macOS Sierra. Since this update when I enter r just a test, the Processing request... part takes ~5 secs. After that comes Reminder command not...atching reminders found for again ~5 secs and after that I get the chance to add the reminder.

Results of rtest:

Test results:
OS version: 10.12.1 (0 seconds)
Current date: Freitag, 4. November 2016 um 10:08:18 (0 seconds)
Initialize workflow path: /Users/MYUSER/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.297A8641-E1E9-436A-A9C9-52D5EFD1FD25 (0 seconds)
Initialize alfred-library: OK (0 seconds)
Initialize update-library: OK (0 seconds)
Initialize wf-library: OK (0 seconds)
Initialize plist-library: OK (0 seconds)
Reminders.app state: Running (0 seconds)
Fetch reminder count: 30 (13 seconds)
Fetch reminder info: OK (11 seconds)
Fetch reminder list count: 6 (0 seconds)
Fetch reminder list info: OK (0 seconds)
Run cache process: SKIPPED (0 seconds)
Fetch cache timestamp: SKIPPED (0 seconds)
Fetch cached reminder count: SKIPPED (0 seconds)
Test basic query: OK (0 seconds)
Test today query: OK (0 seconds)
Test in n minutes query: OK (0 seconds)
Test in n hours query: OK (0 seconds)
Test in n days query: OK (0 seconds)
Test in n days y hours query: OK (0 seconds)
Test in n hours y minutes query: OK (0 seconds)
Test at time query: OK (0 seconds)
Test tomorrow at time query: OK (0 seconds)
Test in x list query: OK (0 seconds)
Subtitle generation: OK (0 seconds)
Test basic reminder filtering: OK (0 seconds)
Test remind today reminder filtering: OK (0 seconds)
Test due tomorrow reminder filtering: OK (0 seconds)
Test reminder list filtering: OK (0 seconds)
Test version-check response: OK (0 seconds)
Current unix time: 1,478250527E+9 (0 seconds)
Simple JSON: OK (0 seconds)
Test execution time: 29 seconds

Running a Mac Pro (Late 2013)

r all doesn't seem to be working

So I'm trying to view all my reminders and it says command not found. Here's the screenshot and rtest results

2015-07-17_1120

Test results:
OS version: 10.10.3 (0 seconds)
Current date: Friday, July 17, 2015 at 11:20:39 AM (0 seconds)
Initialize workflow path: /Users/ejacob/Dropbox/macpreferences/Manheim-Alfred2/Alfred.alfredpreferences/workflows/user.workflow.44B6C700-01A0-4082-BB82-B030B254CB74 (0 seconds)
Initialize alfred-library: OK (0 seconds)
Initialize update-library: OK (0 seconds)
Initialize wf-library: OK (1 seconds)
Initialize plist-library: OK (0 seconds)
Reminders.app state: Running (0 seconds)
Fetch reminder count: 1 (0 seconds)
Fetch reminder info: OK (0 seconds)
Fetch reminder list count: 1 (0 seconds)
Fetch reminder list info: OK (0 seconds)
Run cache process: SKIPPED (0 seconds)
Fetch cache timestamp: SKIPPED (0 seconds)
Fetch cached reminder count: SKIPPED (0 seconds)
Test basic query: OK (0 seconds)
Test today query: OK (0 seconds)
Test in n minutes query: OK (0 seconds)
Test in n hours query: OK (0 seconds)
Test in n days query: OK (0 seconds)
Test in n days y hours query: OK (0 seconds)
Test in n hours y minutes query: OK (0 seconds)
Test at time query: OK (0 seconds)
Test tomorrow at time query: OK (0 seconds)
Test in x list query: OK (0 seconds)
Subtitle generation: OK (0 seconds)
Test basic reminder filtering: OK (0 seconds)
Test remind today reminder filtering: OK (0 seconds)
Test due tomorrow reminder filtering: OK (0 seconds)
Test reminder list filtering: OK (0 seconds)
Test version-check response: OK (0 seconds)
Current unix time: 1.43714644E+9 (0 seconds)
Simple JSON: OK (0 seconds)
Test execution time: 1 seconds

location based reminders

Hi this is cool but it'd be nice to be able to do something like

r get milk when leaving home

possible?

"r this ..." fails entirely

This is probably related to the other issue mentioning "r this", but the behavior described there is quite different.

When I enter "r this " the word "this" is apparently being evaluated at some point in the code and causing a problem, rather than being treated as a string from start to finish.

image

It happens regardless of whether there is text after "this".

image

Quoting "this" with either single or double quotes does not help at all.

If this is a bug in Alfred, has it been reported to Running With Crayons?

Not adding selected mail message

G'day, awesome workflow.

The only thing I've noticed so far is that it doesn't add the selected message within an Apple mail conversation when running r this. If I want to add a particular message within the convo, I need to open the message in its own window – any chance you can swing it so that it detects which message is 'selected' in the conversation view window? Failing that, perhaps it could detect the most recent message within that conversation, as it currently seems to choose a random message.

Cheers,
Phil

r in 2 days do something doesn't work

Just updated to the latest and trying to enter r in 2 days do something appears to do nothing (debug output shows an error even though it seems to think it's a valid command).

Here's the debug output:

[INFO: alfred.workflow.input.scriptfilter] <?xml version="1.0"?><items><item uid="add-reminder" arg="in 2 days do something" type="file" valid=""><title>Add Reminder</title><subtitle>Create a new reminder to do something on Saturday, December 5, 2015 at 12:22:07 PM</subtitle><icon>unchecked.png</icon></item></items>
[INFO: alfred.workflow.input.scriptfilter] Processing output 'alfred.workflow.action.script' with arg 'in 2 days do something'
[INFO: alfred.workflow.action.script] Processing output 'alfred.workflow.output.notification' with arg 'Could not understand command "in 2 days do something"

Persist the preview when not all information is present yet

typing 'r at 12' will change from the preview snippet to a google search as there aren't all of the parameters available.

Would it be possible to maybe have some indicator if the reminder is valid or invalid (maybe a tick or cross), but to keep the workflow active while it is invalid so that you still know that the workflow.

I have just started using this, and was attempting to create a reminder for a lunch event, so when i typed 'r at' the preview was there, but after writing 12 it went to a google search preview, which made me think that I did something wrong.

Maybe some visual feedback that you're still on the right track would be useful for new users.

refactor to reduce duplication

Right now there's duplication of code across the main script filter trigger and the external trigger filter. Try to make that not be the case.

"r this" too quickly in Mail leaves me with a reminder called "th"

If I don't pause after typing "r this" and before hitting return, Alfred creates a reminder called "t" or "th", with no other content. I'm not sure whether this is an Alfred issue or an alfred-reminders issue, but having to slow down kinda defeats the purpose :-)

Auto-update with OneUpdater

Currently trying the beta of this workflow. I see you have auto-update support as an item on your todo. I make OneUpdater which is a workflow-agnostic auto-updater, so you may want to try it.

There’s very little to setup, and once it’s done, you just forget about it. You literally just copy over and connect a Run Script node to your workflow, edit two variables, and it’s done. You then just release your workflow as usual, and it takes care of the rest.

image

Normally I’d submit a PR, but since your method of distributing the workflow will soon have to change (dropbox’s public folder functionality will cease working for everyone), I figured it’s best to open the issue first and then the PR if you want (though the whole point is this is easy to do yourself).

If you’re interested and have any doubts with the instructions, let me know!

Reminders Command Not Recognised

Just installed the workflow on 10.10 and the command isn't recognised. I tried restarting Alfred with no luck. Here's what I see:
screen shot 2014-10-21 at 2 55 26 pm
screen shot 2014-10-21 at 2 56 59 pm

Neither Alfred nor this script appear in apps requesting access to Reminders in System Settings.

the rshow command does not work

hi, i can't not use the rshow command as well as the "r today" o "r tomorrow " to view the existing reminds
captura de pantalla 2016-03-16 a las 2 51 51 p m
. here are the screenshots

captura de pantalla 2016-03-16 a las 2 48 50 p m

captura de pantalla 2016-03-16 a las 2 49 06 p m

system version: El Capitan 10.11.4 beta (15E61b)

thanks a lot.

Problems about alfred's access to reminders

The system of my mac is macOS Sierra 10.12.2 Beta.
When a create a new reminders through Alfred, there is a window asking me whether allow alfred to access to reminders. I click OK, but it still there.
screen shot 2017-06-01 at 2 13 38 pm
I want to know how to solve this problem.

"r all" doesn't work

Just installed alfred-reminders workflow. I've used it to create a reminder, and that worked fine. However, "r all" doesn't appear to work:

image

"r help" works though...

image

Add support for evernote

Would it be possible to add Evernote as a supported "this" application? In particular, say you're viewing a note, it would grab the local link to the note. This is done manually by right-clicking the note name and holding "option" to select "Copy Classic Note Link".

can't not recognise the time and data

hello. thank you for making this excellent workflows. I've used it for about 2 weeks and it worked well until today. i suddenly can't recognise the time and data even though I tried to use your example.

the system version is el Capitan 10.11.4 beta (15E61b), I haven't done any system updates during these days.
here are the screenshots.
captura de pantalla 2016-03-16 a las 2 25 04 p m
captura de pantalla 2016-03-16 a las 2 25 20 p m

thanks a lot for your help.

can not work in Alfred 3 again

Uploading Captura de pantalla 2016-07-14 a las 12.18.21 p. m..png…

hello, this workflow again fails to work. I have reinstalled it but it just can't work. and this is the result after running the "rtest":

Test results:
OS version: 10.11.6 (0 seconds)
Current date: jueves, 14 de julio de 2016, 12:09:45 p. m. (0 seconds)
Initialize workflow path: /Users/tuzi 1/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.93F11830-974E-4FCB-B100-45DCFAA18428 (0 seconds)
Initialize alfred-library: OK (0 seconds)
Initialize update-library: OK (0 seconds)
Initialize wf-library: ERROR: mkdir: /Users/tuzi/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.surrealroad.alfred-reminder/: Permission denied (0 seconds)
Initialize plist-library: OK (0 seconds)
Reminders.app state: Running (0 seconds)
Fetch reminder count: 11 (10 seconds)
Fetch reminder info: OK (15 seconds)
Fetch reminder list count: 5 (0 seconds)
Fetch reminder list info: OK (0 seconds)
Run cache process: SKIPPED (0 seconds)
Fetch cache timestamp: SKIPPED (0 seconds)
Fetch cached reminder count: SKIPPED (0 seconds)
Test basic query: OK (0 seconds)
Test today query: OK (0 seconds)
Test in n minutes query: OK (0 seconds)
Test in n hours query: OK (0 seconds)
Test in n days query: OK (0 seconds)
Test in n days y hours query: OK (0 seconds)
Test in n hours y minutes query: OK (0 seconds)
Test at time query: OK (0 seconds)
Test tomorrow at time query: OK (0 seconds)
Test in x list query: OK (0 seconds)
Subtitle generation: OK (0 seconds)
Test basic reminder filtering: OK (0 seconds)
Test remind today reminder filtering: OK (0 seconds)
Test due tomorrow reminder filtering: OK (0 seconds)
Test reminder list filtering: OK (0 seconds)
Test version-check response: ERROR: La variable timestamp no está definida. (0 seconds)
Current unix time: 1.46846941E+9 (0 seconds)
Simple JSON: OK (0 seconds)
Test execution time: 25 seconds

reminder command not recognised ...

Hi there,

if I type commands like "r all" or "r overdue" I get following message:

reminder command not recognised or no matching reminder found

Specs:

  • newest Mavericks, Alfred and alfred-reminders
  • alfred has access to reminders (privacy setting)
  • creating reminders works

btw. Is there a option to select the reminder-list like "private" or "work"?

Thanks from Berlin,
Alex

can not work in Alfred 3

hello, i just updated to Alfred 3 and found i can't use this workflow. hope you can fix this bug soon. thanks a lot.

captura de pantalla 2016-05-26 a las 2 00 32 p m

Documentation Request: build instructions

I'm made a few (trivial) changes to the code to accommodate UI preferences, but I'm unable to properly build the new bundle. Could you include directions in the README.md for others like me who want to tweak things that Alfred does not expose?

I saved the alfred_library.applescript as a Script, and then zipped up my version with a ..alfredworkflow extension, but it will not open in Alfred. Any help would be appreciated—thanks in advance!

App Support

How do you add support for other apps such as "AirMail" using r this command?

how to set default list?

you wrote I didn't consider that possibility! Download the updated version in the original post, and you can set the name of the list to use at the top of the applescript but unfortunately I didn't find the place to set the default list...

r this "date/time"

Hi there,

"r this at 6pm" or "r this tomorrow at 6pm" seems to be broken. It creates the "this" reminder, but it either does not add the date/time component to the reminder or it adds the incorrect time.

Is this a known bug, or is it something wrong with my system.
Let me know if you need any additional information.

Thanks,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.