alfred-mouseless-messenger icon indicating copy to clipboard operation
alfred-mouseless-messenger copied to clipboard

Error on run, nothing seems to happen

Open stringerzoo opened this issue 2 years ago • 15 comments

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)

stringerzoo avatar Aug 25 '22 16:08 stringerzoo

  • Have you enabled full-disk access for Alfred?
  • Are you using iCloud Messages?

stephancasas avatar Aug 25 '22 16:08 stephancasas

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

stringerzoo avatar Aug 25 '22 16:08 stringerzoo

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)

stringerzoo avatar Aug 25 '22 16:08 stringerzoo

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.

stephancasas avatar Aug 25 '22 16:08 stephancasas

Thanks. Looks like that option has already been deprecated in Monterey as well. Screen Shot 2022-08-25 at 1 06 08 PM

stringerzoo avatar Aug 25 '22 17:08 stringerzoo

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.

stringerzoo avatar Aug 25 '22 17:08 stringerzoo

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.

stephancasas avatar Aug 25 '22 17:08 stephancasas

v. 1.0.2 works so I went back to it.

Korean-David avatar Aug 31 '22 20:08 Korean-David

Works for me too! Thanks!

stringerzoo avatar Aug 31 '22 21:08 stringerzoo

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!

itsfatal avatar Sep 08 '22 16:09 itsfatal

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?

stephancasas avatar Sep 10 '22 18:09 stephancasas

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.

Korean-David avatar Sep 10 '22 18:09 Korean-David

This issue should be fixed in v2.0.

stephancasas avatar Feb 08 '23 17:02 stephancasas

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

bowernite avatar Jun 13 '23 15:06 bowernite

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.

SendMeOnce avatar Jul 20 '23 19:07 SendMeOnce