Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on run, nothing seems to happen #4

Open
stringerzoo opened this issue Aug 25, 2022 · 15 comments
Open

Error on run, nothing seems to happen #4

stringerzoo opened this issue Aug 25, 2022 · 15 comments

Comments

@stringerzoo
Copy link

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
Copy link
Owner

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

@stringerzoo
Copy link
Author

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

@stringerzoo
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

stringerzoo commented Aug 25, 2022

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

@stringerzoo
Copy link
Author

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
Copy link
Owner

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
Copy link

v. 1.0.2 works so I went back to it.

@stringerzoo
Copy link
Author

Works for me too! Thanks!

@itsfatal
Copy link

itsfatal commented Sep 8, 2022

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
Copy link
Owner

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
Copy link

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
Copy link
Owner

This issue should be fixed in v2.0.

@bowernite
Copy link

bowernite commented Jun 13, 2023

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants