stephancasas / alfred-mouseless-messenger

Preview and reply to your messages from within Alfred. Keep your hands on that keyboard!
93 stars 3 forks source link

Error on run, nothing seems to happen #4

Open stringerzoo opened 2 years ago

stringerzoo commented 2 years ago

I'm running v. 1.1.0 on Alfred 5.0.1 on macOS 12.15.1 Here's what comes up in the debug log when I type "msg" in Alfred:

[11:58:29.578] Mouseless Messenger[Script Filter] Queuing argument '(null)' [11:58:29.698] Mouseless Messenger[Script Filter] Script with argv '(null)' finished [11:58:29.700] ERROR: Mouseless Messenger[Script Filter] Code 1: /Users/scottstringer/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/BE986025-FCFA-4111-9D75-81A96909599E: execution error: Error: Error: 2022-08-25 11:58:29.693 defaults[67239:1989191] The domain/default pair of (kCFPreferencesAnyApplication, AppleInterfaceStyle) does not exist (1)

stephancasas commented 2 years ago
stringerzoo commented 2 years ago

Yes, f-d access is/was enabled. Yes, iCloud messages is/was enabled.

stringerzoo commented 2 years ago

After reading the full thread of the previous issue, tried rebooting (I know, should have done that first). Getting the same error...

[12:42:32.210] Mouseless Messenger[Script Filter] Queuing argument '(null)' [12:42:32.383] Mouseless Messenger[Script Filter] Script with argv '(null)' finished [12:42:32.386] ERROR: Mouseless Messenger[Script Filter] Code 1: /Users/scottstringer/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/79B5001F-89D9-4EBA-92DA-E890EC354635: execution error: Error: Error: 2022-08-25 12:42:32.379 defaults[1703:12250] The domain/default pair of (kCFPreferencesAnyApplication, AppleInterfaceStyle) does not exist (1)

stephancasas commented 2 years ago

The workflow queries the Messages SQLite database. If you're using iCloud Messages, you also need to enable the Save history when conversations are closed option so that the database actually has content written to it.

I'm told that this option has disappeared in beta versions of macOS Ventura, so I'm not sure how viable of a solution this will prove to be long-term.

stringerzoo commented 2 years ago

Thanks. Looks like that option has already been deprecated in Monterey as well.

Screen Shot 2022-08-25 at 1 06 08 PM
stringerzoo commented 2 years ago

This article also confirms that later versions of macOS are not going to enable local saving of Messages history. Thanks for your work on this.

stephancasas commented 2 years ago

I wonder if there's an exposure for this using defaults write or plistbuddy. If it's going to disappear altogether in macOS Ventura, I'll need to find a new way to get to the messages data.

Korean-David commented 2 years ago

v. 1.0.2 works so I went back to it.

stringerzoo commented 2 years ago

Works for me too! Thanks!

itsfatal commented 2 years ago

I'm on Ventura as well with iCloud messages enabled and 1.2 doesn't work for me. Let me know if I can provide anything that would help!

stephancasas commented 2 years ago

I'm unable to test iCloud Messages without enabling it on my own device, and potentially losing some functionality in other apps/workflows I've written.

To help me understand the current disposition of things, Mouseless Messenger 1.1 doesn't work, but earlier versions do work?

Korean-David commented 2 years ago

I'm unable to test iCloud Messages without enabling it on my own device, and potentially losing some functionality in other apps/workflows I've written.

To help me understand the current disposition of things, Mouseless Messenger 1.1 doesn't work, but earlier versions do work?

yes, 1.02 works fine.

stephancasas commented 1 year ago

This issue should be fixed in v2.0.

bowernite commented 1 year ago

This still seems to happen. Can reproduce if I trigger the workflow right after sending a message. The first few times I run the workflow it does nothing, then eventually gets going again.

Error: 2023-06-13 10:18:58.971 defaults[38972:1701771] 
The domain/default pair of (kCFPreferencesAnyApplication, AppleInterfaceStyle) does not exist (1)

CleanShot 2023-06-13 at 10 21 20

SendMeOnce commented 1 year ago

I had the same problem / error message when debugging. I think I may have found the issue; obviously did all of the above: reboot, Full Disk Access, delete / reinstall.... My solution: check the Automation permissions (in Privacy and Security), Messages was not enabled. I made sure it was enabled and started working. Hope this helps.