jdb Posted May 5, 2020 Share Posted May 5, 2020 (edited) Sharing a basic Alfred3 workflow for Microsoft Todo for anyone migrating over to ToDo as of Wunderlist's shutdown tomorrow. Alfred is my go-to for controlling Mac and the efficiency of adding and searching tasks via the workflow is something that I was going to miss with a move to another to-do list, so I decided to make a fork of prior work here. PRs welcome! https://github.com/johandebeurs/alfred-mstodo-workflow Edited May 5, 2020 by vitor Made link clickable Link to comment
Ben428 Posted May 5, 2020 Share Posted May 5, 2020 Thanks so much for doing this! Alfred integration has been one of the biggest things I've missed about Wunderlist since switching to Microsoft ToDo. Unfortunately, I can't seem to get it to work. I downloaded the workflow and double-clicked on it and it appears to install properly, but when I type "td" in the Alfred box, all I get is the application—I don't see the options visible in your screenshots. I tried disabling and reenabling and deleting and reinstalling, as well as quitting Alfred altogether. What am I missing? Thanks for any help you can provide. Ben Link to comment
Ben428 Posted May 6, 2020 Share Posted May 6, 2020 Here is the error message in the debugging panel. [06:39:54.052] Logging Started... [06:39:56.942] Microsoft ToDo[Script Filter] Queuing argument '' [06:39:57.146] Microsoft ToDo[Script Filter] Script with argv '(null)' finished [06:39:57.148] ERROR: Microsoft ToDo[Script Filter] Code 1: Traceback (most recent call last): File "alfred-mstodo-workflow.py", line 8, in <module> fileConfig('/Users/johan/Documents/Programming/Alfred workflows/alfred-mstodo-workflow/src/logging_config.ini') File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/config.py", line 77, in fileConfig formatters = _create_formatters(cp) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/config.py", line 113, in _create_formatters flist = cp.get("formatters", "keys") File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ConfigParser.py", line 607, in get raise NoSectionError(section) ConfigParser.NoSectionError: No section: 'formatters' Link to comment
jdb Posted May 10, 2020 Author Share Posted May 10, 2020 @Ben428 This is updated now - caused by an absolute path to a logging config file on my machine. Also tweaked logic to improve sync speed for large accounts, so please try again and LMK how you get on Link to comment
Ben428 Posted May 10, 2020 Share Posted May 10, 2020 Thanks @jdb. I now see the initial workflow options but still can't log in. As discussed on GitHub, where you hypothesized that it is an Alfred 4 problem. Link to comment
Hari Posted September 8, 2020 Share Posted September 8, 2020 Hi @jdb, thanks you so much for the workflow ! Of late I have been running in to authentication issues which I am not sure how to resolve, I tried to login to todo website and see if something pops up to authenticate the workflow but I dont see anything. Not sure what happened, I am seeing this issue for the second time and I dont remember how it got resolved the first time.. =================================================== [10:53:36.306] Microsoft ToDo[Script Filter] Queuing argument '' [10:53:36.880] Microsoft ToDo[Script Filter] Script with argv '(null)' finished [10:53:36.884] ERROR: Microsoft ToDo[Script Filter] Code 1: . 2020-09-08 10:53:36,852 workflow ERROR Traceback (most recent call last): File "/Users/hk890008/alfred/Alfred.alfredpreferences/workflows/user.workflow.165812FE-AFC5-4F5C-B9BB-928AA638E604/workflow/workflow.py", line 2073, in run func(self) File "alfred-mstodo-workflow.py", line 17, in main route(wf.args) File "/Users/hk890008/alfred/Alfred.alfredpreferences/workflows/user.workflow.165812FE-AFC5-4F5C-B9BB-928AA638E604/mstodo/handlers/route.py", line 18, in route logged_in = is_authorised() File "/Users/hk890008/alfred/Alfred.alfredpreferences/workflows/user.workflow.165812FE-AFC5-4F5C-B9BB-928AA638E604/mstodo/auth.py", line 57, in is_authorised return resolve_oauth_token(refresh_token=workflow().get_password(config.KC_REFRESH_TOKEN)) File "/Users/hk890008/alfred/Alfred.alfredpreferences/workflows/user.workflow.165812FE-AFC5-4F5C-B9BB-928AA638E604/workflow/workflow.py", line 2445, in get_password account, '-g') File "/Users/hk890008/alfred/Alfred.alfredpreferences/workflows/user.workflow.165812FE-AFC5-4F5C-B9BB-928AA638E604/workflow/workflow.py", line 2813, in _call_security raise PasswordNotFound() PasswordNotFound [10:53:36.888] Microsoft ToDo[Script Filter] <?xml version="1.0" encoding="utf-8"?> <items><item valid="no"><title>Error in workflow 'Microsoft ToDo'</title><subtitle /><icon>/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns</icon></item></items> Link to comment
Ben428 Posted September 9, 2020 Share Posted September 9, 2020 @HariI'm not sure if that's the same error message that I've seen but I've resolved some authentication issues by deleting any items under com.johandebeurs.alfred.mstodo in Keychain Access. Then I am prompted to log in again and all is cool. Link to comment
Hari Posted September 10, 2020 Share Posted September 10, 2020 @Ben428 , wonderful, that fixed the problem, thank you !! Link to comment
Ben428 Posted November 6, 2021 Share Posted November 6, 2021 @jdb Does this workflow work in MacOS 12 Monterey? When I try to log in, it seems to be working and then I get this message in my browser. I think that deleting the keychain entry fixed this in the past but it is not doing the trick. Access to 127.0.0.1 was denied You don't have authorization to view this page. HTTP ERROR 403 Link to comment
dnewber Posted January 9, 2022 Share Posted January 9, 2022 Same issue over here. Were you able to figure this one out? Link to comment
Ben428 Posted January 9, 2022 Share Posted January 9, 2022 17 minutes ago, dnewber said: Same issue over here. Were you able to figure this one out? Have I gotten it to work in Monterey? Nope. Never solved it. Link to comment
Ben428 Posted January 20, 2022 Share Posted January 20, 2022 @dnewberNot sure what changed but I just tried logging on my Monterey machine and it worked! I am running MacOS 12.1 and the workflow is 0.1.2. Link to comment
RobOK Posted January 20, 2023 Share Posted January 20, 2023 I installed this and can use the command TD to bring up the app, but no other characters are recognized. Any tips on getting this to work with current version of Alfred? Link to comment
bjoern Posted February 15, 2023 Share Posted February 15, 2023 same here , is this workflow still working ? Link to comment
ccsameer Posted March 2, 2023 Share Posted March 2, 2023 Just want to echo my interest in this Alfred workflow for MS To Do. Link to comment
lil_buddha Posted March 2, 2023 Share Posted March 2, 2023 This needs to be recompiled using Python 3 to make it work. Link to comment
jdb Posted April 27, 2023 Author Share Posted April 27, 2023 FYI, working on a refactor to Py3 now that alfredworkflow has been ported Alfred-PyWorkflow · PyPI. No ETA yet as I'll also restructure to latest Microsoft graph endpoints (given the current ones are at end of life) and I don't yet know the schema differences between the two Link to comment
jdb Posted June 8, 2023 Author Share Posted June 8, 2023 Refactor released here https://github.com/johandebeurs/alfred-mstodo-workflow/releases/tag/0.2.0 and on Packal. Still pending MS graph endpoint refactoring but Py3 refactor is largely done Link to comment
TomBenz Posted February 5 Share Posted February 5 On 6/8/2023 at 9:34 PM, jdb said: Refactor released here https://github.com/johandebeurs/alfred-mstodo-workflow/releases/tag/0.2.0 and on Packal. Still pending MS graph endpoint refactoring but Py3 refactor is largely done @jdb Request you to look into this issue @vitor https://github.com/johandebeurs/alfred-mstodo-workflow/issues On MacOS Sonoma, I'm getting the following error when trying to setup td worflow. This also happens when running _td-full-reset and _td-reset. Here's my settings from ENV ➜ ~ which -a python3 /opt/homebrew/bin/python3 /usr/bin/python3 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