deanishe Posted June 7, 2017 Author Posted June 7, 2017 I can't do anything with a screenshot. Please post an actionable description of your issue. Open Alfred's debugger (to turn on debug mode), run Force Reload from MailTo's settings screen (keyword mailto), then open the log file with mailto workflow:openlog and post the log messages from the update_apps.py script.
MEs Posted June 7, 2017 Posted June 7, 2017 Thanks. Here it is : 14:36:36 update.py:231 DEBUG Retrieving releases list from `https://api.github.com/repos/deanishe/alfred-mailto/releases` ... 14:36:36 update.py:235 INFO Retrieving releases for `deanishe/alfred-mailto` ... 14:36:36 workflow.py:2140 DEBUG Workflow version : 2.1.4 14:36:36 workflow.py:2176 DEBUG Workflow finished in 0.020 seconds. 14:36:36 workflow.py:2176 DEBUG Workflow finished in 0.021 seconds. 14:36:36 background.py:236 DEBUG Task `update-apps` running 14:36:36 background.py:237 DEBUG cmd : [u'/usr/bin/python', u'/Users/EH/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.FE95C155-4F23-4D46-9EB8-0E14D728D2CE/update_apps.py'] 14:36:37 workflow.py:2140 DEBUG Workflow version : 2.1.4 14:36:37 update_apps.py:69 DEBUG System default mailto handler : {u'path': u'/Applications/Mail.app', u'name': u'Mail', u'bundleid': u'com.apple.mail'} 14:36:37 workflow.py:1814 DEBUG Cached data saved at : /Users/EH/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-mailto/system_default_app.cpickle 14:36:37 update_apps.py:49 DEBUG mailto handler : it.bloop.airmail2 // /Applications/Airmail 3.app 14:36:37 update_apps.py:49 DEBUG mailto handler : com.apple.mail // /Applications/Mail.app 14:36:37 update_apps.py:53 DEBUG 2 email clients found 14:36:37 workflow.py:1814 DEBUG Cached data saved at : /Users/EH/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-mailto/all_apps.cpickle 14:36:37 update_apps.py:78 DEBUG Client application caches updated in 0.012 seconds 14:36:37 workflow.py:1543 DEBUG Reading settings from `/Users/EH/Library/Application Support/Alfred 3/Workflow Data/net.deanishe.alfred-mailto/settings.json` ... 14:36:37 workflow.py:2331 DEBUG Set last run version : 2.1.4 14:36:37 workflow.py:2176 DEBUG Workflow finished in 0.019 seconds. 14:36:37 background.py:248 DEBUG Task `update-apps` finished Seems like Airmail 3 is detected properly, but I can't select it. But I did all this reload previously, and I wasn't able to choose Airmail. Now I can...! Not sure why. Unfortunately, every time I try to run mailto, I get a "Python"process using 99% of CPU. I realised it because after 2-3 process Python running aside, I hear my fans running So far, only one is running, even after using the Mailto workflow a few times. Is it because of the contacts updating ?
deanishe Posted June 7, 2017 Author Posted June 7, 2017 Nope. The workflow has an out-of-date version of a library that doesn't get along with Sierra. That is almost certainly what was preventing you from selecting Airmail. Here's the solution. Run that workflow and it will fix MailTo and any other workflows you have that are affected by the bug.
MEs Posted June 7, 2017 Posted June 7, 2017 Thanks a lot ! Worked perfectly ! One last question, is there any reason why "mailto" followed by the name of a contact won't find my contacts when "@" works ? Looking at the workflow, I thought both would show me the contacts corresponding to my query.
deanishe Posted June 7, 2017 Author Posted June 7, 2017 On 29/10/2013 at 8:36 PM, deanishe said: @ + ENTER — compose a blank mail (no recipients) @ [part of name or email address] — search your Contacts for matches. You can also add email addresses not in your Contacts. mailto — see and change current settings
MEs Posted June 8, 2017 Posted June 8, 2017 Ok then. For some reason it used to work with mailto just like with @ ...
deanishe Posted June 8, 2017 Author Posted June 8, 2017 Yeah. In the first version mailto was the keyword for sending. And then I realised that it should be @.
MEs Posted June 9, 2017 Posted June 9, 2017 Okay so I wasn't a full Thanks again for your help and your great workflows !
deanishe Posted June 10, 2017 Author Posted June 10, 2017 13 hours ago, MEs said: Okay so I wasn't a full No, that's how version 1 worked.
kjaymiller Posted July 1, 2017 Posted July 1, 2017 (edited) Great tool here... Can you explain how you got the multiple contact acceptance to work.. I would like to implement in an unrelated project. Edited July 1, 2017 by kjaymiller
deanishe Posted July 1, 2017 Author Posted July 1, 2017 I'm not clear on what it is you're asking. What do you mean by "acceptance"?
kjaymiller Posted July 1, 2017 Posted July 1, 2017 8 hours ago, deanishe said: I'm not clear on what it is you're asking. What do you mean by "acceptance"? I mean the ability add multiple values before sending the entire list of email addresses.
deanishe Posted July 1, 2017 Author Posted July 1, 2017 By setting the autocomplete value on feedback items. TABbing on a result adds the full email address plus a trailing comma to the input. The workflow script treats everything after the last comma as a search query.
Alain Posted December 1, 2017 Posted December 1, 2017 (edited) Bonjour, depuis le passage à High sierra 10.13.1 (17B1003), la connexion avec le carnet d'adresse est rompu. Impossible de reconnecter. (capture 9:11) Si je veux juste créér un mail, une notification apparait.(capture 9:12) Merci pour votre aide. Alain Hello since switching to High sierra 10.13.1 (B 17, 1003), the connection with the address book is broken. Unable to reconnect. (capture 9:11) If I want to just create a mail, a notification appears. (capture 9:12) Thanks for your help. Edited December 1, 2017 by Alain
Vero Posted December 1, 2017 Posted December 1, 2017 @Alain Welcome to the forum. Could you please fill in your Powerpack email address in your forum profile? This is only visible to admins, and allows us to confirm your Powerpack status. Cheers, Vero
Alain Posted December 1, 2017 Posted December 1, 2017 4 hours ago, Vero said: Could you please fill in your Powerpack email address in your forum profile? Je crois que j'ai fait It's done, I think
Vero Posted December 1, 2017 Posted December 1, 2017 @Alain Thanks for filling that in I think @deanishe will be in a better position to help you as it's his workflow, but in the meantime: - Check if there are errors reported in the debugger - Let us know whether you're using the default Contacts app in High Sierra, or a third-party contacts manager, etc Cheers, Vero
Alain Posted December 1, 2017 Posted December 1, 2017 (edited) Merci, j'utilise Contacts de Mac. Starting debug for 'MailTo' [2017-12-01 16:49:45][STDERR: input.scriptfilter] 16:49:44 workflow.py:2247 DEBUG ---------- MailTo (2.2.1) ---------- 16:49:44 workflow.py:1657 DEBUG reading settings from /Users/blabla/Library/Application Support/Alfred 3/Workflow Data/net.deanishe.alfred-mailto/settings.json 16:49:44 workflow.py:2526 INFO checking for update ... 16:49:44 background.py:188 DEBUG [__workflow_update_check] command cached: /Users/blabla/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-mailto/__workflow_update_check.argcache 16:49:44 background.py:192 DEBUG [__workflow_update_check] passing job to background runner: [u'/usr/bin/python', '/Users/blabla/Dropbox (Personnelle)/Alfred/Alfred.alfredpreferences/workflows/user.workflow.9345D503-6517-4300-99B5-6F2F5C86CF2C/workflow/background.pyc', u'__workflow_update_check'] 16:49:45 workflow.py:2247 DEBUG ---------- MailTo (2.2.1) ---------- 16:49:45 background.py:197 DEBUG [__workflow_update_check] background job started 16:49:45 mailto.py:136 DEBUG args : Namespace(action=u'search', query=u'') 16:49:45 workflow.py:1884 DEBUG loading cached data: /Users/blabla/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-mailto/all_apps.cpickle 16:49:45 workflow.py:1884 DEBUG loading cached data: /Users/blabla/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-mailto/system_default_app.cpickle 16:49:45 client.py:259 DEBUG Updating application caches ... 16:49:45 background.py:188 DEBUG [update-apps] command cached: /Users/blabla/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-mailto/update-apps.argcache 16:49:45 background.py:192 DEBUG [update-apps] passing job to background runner: [u'/usr/bin/python', '/Users/blabla/Dropbox (Personnelle)/Alfred/Alfred.alfredpreferences/workflows/user.workflow.9345D503-6517-4300-99B5-6F2F5C86CF2C/workflow/background.pyc', u'update-apps'] 16:49:45 workflow.py:2247 DEBUG ---------- MailTo (2.2.1) ---------- 16:49:45 background.py:197 DEBUG [update-apps] background job started 16:49:45 mailto.py:154 DEBUG Searching contacts 16:49:45 workflow.py:1884 DEBUG loading cached data: /Users/blabla/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-mailto/__workflow_update_status.cpickle 16:49:45 workflow.py:2461 DEBUG update_data: {u'available': False} 16:49:45 contacts.py:43 DEBUG Updating contacts cache ... 16:49:45 background.py:188 DEBUG [update-contacts] command cached: /Users/blbla/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-mailto/update-contacts.argcache 16:49:45 background.py:192 DEBUG [update-contacts] passing job to background runner: [u'/usr/bin/python', '/Users/blbl/Dropbox (Personnelle)/Alfred/Alfred.alfredpreferences/workflows/user.workflow.9345D503-6517-4300-99B5-6F2F5C86CF2C/workflow/background.pyc', u'update-contacts'] 16:49:45 workflow.py:2247 DEBUG ---------- MailTo (2.2.1) ---------- 16:49:45 background.py:197 DEBUG [update-contacts] background job started 16:49:45 workflow.py:2440 DEBUG set last run version: 2.2.1 16:49:45 workflow.py:2289 DEBUG ---------- finished in 0.662s ---------- Edited December 1, 2017 by Alain
deanishe Posted December 1, 2017 Author Posted December 1, 2017 Hi Alain, I need the log file, not the debugger output. The debugger only shows what the Script Filter is doing, not what the script that reads your contact list is doing. Enter @ workflow:openlog in Alfred to open the log file in Console.app, then enter mailto in Alfred and run the Force Reload action.
Alain Posted December 1, 2017 Posted December 1, 2017 (edited) Bonsoir merci de votre aide Edited December 1, 2017 by Alain Remove contact details
deanishe Posted December 1, 2017 Author Posted December 1, 2017 @Alain I have no idea what's going wrong there. The error message doesn't make any sense (I'm not using any dates), and I can't replicate the error, as I don't have High Sierra. The only thing I can suggest is editing the update_contacts.py file within the workflow to turn off groups: Change line 237 from for group in iter_groups(): to for group in []: That way, you can still use the workflow to address individuals, but no groups. Is anybody else having this issue on High Sierra?
deanishe Posted December 1, 2017 Author Posted December 1, 2017 What doesn't work? The change I suggested? Could you post the log again (removing any names and email addresses first)?
Alain Posted December 1, 2017 Posted December 1, 2017 (edited) 20:20:51 background.py:237 DEBUG cmd : [u'/usr/bin/python', u'/Users/blbl/Dropbox (Personnelle)/Alfred/Alfred.alfredpreferences/workflows/mailto-user.workflow.B4D5974E-C2F1-4157-A779-31AA1CE95E97/update_contacts.py'] 20:20:51 background.py:197 DEBUG Executing task `update-contacts` in background... 20:20:51 contacts.py:43 DEBUG Updating contacts cache ... 20:20:51 background.py:180 INFO Task `update-contacts` is already running 20:20:51 workflow.py:1778 DEBUG Loading cached data from : /Users/blbl/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-mailto/all_apps.cpickle 20:20:51 workflow.py:1778 DEBUG Loading cached data from : /Users/blbl/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-mailto/system_default_app.cpickle 20:20:51 workflow.py:1778 DEBUG Loading cached data from : /Users/blbl/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-mailto/all_apps.cpickle 20:20:51 workflow.py:1778 DEBUG Loading cached data from : /Users/blbl/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-mailto/system_default_app.cpickle 20:20:51 client.py:261 DEBUG Updating application caches ... 20:20:51 background.py:188 DEBUG Command arguments cached to `/Users/blbl/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-mailto/update-apps.argcache` 20:20:51 background.py:192 DEBUG Calling [u'/usr/bin/python', '/Users/blbl/Dropbox (Personnelle)/Alfred/Alfred.alfredpreferences/workflows/mailto-user.workflow.B4D5974E-C2F1-4157-A779-31AA1CE95E97/workflow/background.pyc', u'update-apps'] ... 20:20:51 background.py:243 ERROR Command failed with [1] : [u'/usr/bin/python', u'/Users/blbl/Dropbox (Personnelle)/Alfred/Alfred.alfredpreferences/workflows/mailto-user.workflow.B4D5974E-C2F1-4157-A779-31AA1CE95E97/update_contacts.py'] 20:20:51 background.py:248 DEBUG Task `update-contacts` finished 20:20:51 workflow.py:1543 DEBUG Reading settings from `/Users/blbl/Library/Application Support/Alfred 3/Workflow Data/net.deanishe.alfred-mailto/settings.json` ... 20:20:51 workflow.py:2331 DEBUG Set last run version : 2.1.4 20:20:51 workflow.py:2176 DEBUG Workflow finished in 0.228 seconds. 20:20:51 workflow.py:2140 DEBUG Workflow version : 2.1.4 20:20:51 workflow.py:2176 DEBUG Workflow finished in 0.074 seconds. 20:20:51 workflow.py:2176 DEBUG Workflow finished in 0.076 seconds. 20:20:51 background.py:236 DEBUG Task `update-apps` running 20:20:51 background.py:237 DEBUG cmd : [u'/usr/bin/python', u'/Users/blbl/Dropbox (Personnelle)/Alfred/Alfred.alfredpreferences/workflows/mailto-user.workflow.B4D5974E-C2F1-4157-A779-31AA1CE95E97/update_apps.py'] 20:20:51 background.py:197 DEBUG Executing task `update-apps` in background... 20:20:51 common.py:71 DEBUG calling Alfred with : u'tell application "Alfred 2" to search "mailto "' 20:20:52 workflow.py:2331 DEBUG Set last run version : 2.1.4 20:20:52 workflow.py:2176 DEBUG Workflow finished in 1.014 seconds. 20:20:52 workflow.py:2140 DEBUG Workflow version : 2.1.4 20:20:52 update_apps.py:69 DEBUG System default mailto handler : {u'path': u'/Applications/Mail.app', u'name': u'Mail', u'bundleid': u'com.apple.mail'} 20:20:52 workflow.py:1814 DEBUG Cached data saved at : /Users/blbl/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-mailto/system_default_app.cpickle 20:20:52 update_apps.py:49 DEBUG mailto handler : com.apple.mail // /Applications/Mail.app 20:20:52 update_apps.py:53 DEBUG 1 email clients found 20:20:52 workflow.py:1814 DEBUG Cached data saved at : /Users/blbl/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-mailto/all_apps.cpickle 20:20:52 update_apps.py:78 DEBUG Client application caches updated in 0.044 seconds 20:20:52 workflow.py:1543 DEBUG Reading settings from `/Users/blbl/Library/Application Support/Alfred 3/Workflow Data/net.deanishe.alfred-mailto/settings.json` ... 20:20:52 workflow.py:2331 DEBUG Set last run version : 2.1.4 20:20:52 workflow.py:2176 DEBUG Workflow finished in 0.069 seconds. 20:20:52 background.py:248 DEBUG Task `update-apps` finished 20:20:52 workflow.py:1543 DEBUG Reading settings from `/Users/blbl/Library/Application Support/Alfred 3/Workflow Data/net.deanishe.alfred-mailto/settings.json` ... 20:20:52 workflow.py:2331 DEBUG Set last run version : 2.1.4 20:20:52 workflow.py:2176 DEBUG Workflow finished in 0.983 seconds. Merci Edited December 1, 2017 by deanishe Remove irrelevant log entries
deanishe Posted December 1, 2017 Author Posted December 1, 2017 (edited) Not sure how to fix the issue, tbh. I've just released a new version that should ignore groups that cause problems. Could you update to that one and try again? Also force reload once more and post the log? But not the entire log, please. Just the lines between Executing task `update-contacts` in background... and Task `update-contacts` finished. Edited December 1, 2017 by deanishe
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