Jump to content

Mouseless Messenger — iMessage/SMS Preview and Reply for Alfred


Recommended Posts

Mouseless Messenger

 

Mouseless Messenger offers you rapid keyboard-driven access to send and read conversations in the macOS Messages app via Alfred — all without ever interacting with the Messages app.

 

Click Here to Download the Latest Release

 

Installation

Before the workflow can be used, you'll need to provide Alfred with Full Disk Access privileges via System Preferences:

  1. Open System Preferences
  2. Choose Security and Privacy
  3. Choose Privacy
  4. Select Full Disk Access
  5. Unlock the 🔒 in the bottom left corner.
  6. Enable the checkbox for Alfred.
    • If unavailable, use the button to add Alfred.

 

⚠️ Privilege Escalation

Full Disk Access is used to provide Alfred with access to the Messages database. However, by providing Alfred with this access, you are providing ALL Alfred workflow with access — not just Mouseless Messenger.

 

Be sure you trust your installed workflows before allowing this.

 

Usage

The workflow is triggered by the keyword msg. On run, you'll be provided with the your eight (8) most recent conversations in the Messages app.

 

  • To preview a message thread, press the SHIFT key while a conversation is selected. Press it again to dismiss the conversation preview.
  • To reply to a message thread, press the ENTER or RETURN key while a conversation is selected, then type your reply in the provided input space and press ENTER to send it.

 

In order for the message to send, the Messages app must be running in the background. The window doesn't need to be in the foreground (or even visible), but the app itself must be running.

 

Support the Workflow

I built Mouseless Messenger because I code all day and don't like to take my hands off the keyboard. If you find it useful, please consider buying me a coffee so that I can keep building cool things like this.

 

If you have a feature you'd like added, or an issue which needs attention, please open an issue on GitHub.

still-1.jpg

still-2.jpg

still-3.jpg

still-4.jpg

Link to comment
  • 2 weeks later...

This seems very useful, unfortunately it does not work for me on macOS 12.4 and Alfred 4.6.6 [1303]. Full Disk Access has been granted and Alfred has been restarted (also restarted the computer just in case). The debugger provides the following brief information: 

 

ERROR: Mouseless Messenger[Script Filter] Code 1: /Users/***/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/A1EB22C3-A50D-427E-B2D8-2632031A2F76: execution error: Error: Error: Can't get object. (-1728)

 

I opened an issue on GitHub.

Edited by cands
Link to comment
On 6/23/2022 at 4:11 PM, cands said:

This seems very useful, unfortunately it does not work for me on macOS 12.4 and Alfred 4.6.6 [1303]. Full Disk Access has been granted and Alfred has been restarted (also restarted the computer just in case). The debugger provides the following brief information: 

 

ERROR: Mouseless Messenger[Script Filter] Code 1: /Users/***/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/A1EB22C3-A50D-427E-B2D8-2632031A2F76: execution error: Error: Error: Can't get object. (-1728)

 

I opened an issue on GitHub.

Resolved in version 1.0.1, thanks!

Link to comment

I'm now getting this issue I'm on v1.0.1.

 

[09:39:58.383] Mouseless Messenger[Script Filter] Queuing argument '(null)'
[09:39:58.731] Mouseless Messenger[Script Filter] Script with argv '(null)' finished
[09:39:58.734] ERROR: Mouseless Messenger[Script Filter] Code 1: /Users/Pat/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/A557A290-5B3F-4A64-9A5C-41D1E13FB4DC: execution error: Error: TypeError: null is not an object (evaluating 'message_body.replace') (-2700)

 

Link to comment
On 6/10/2022 at 8:20 PM, stephancasas said:

Mouseless Messenger

 

Mouseless Messenger offers you rapid keyboard-driven access to send and read conversations in the macOS Messages app via Alfred — all without ever interacting with the Messages app.

 

..

 

 

Would be better if you got rid of the "Chat with" and just showed the Contact Name / Number instead..

Link to comment
  • 3 weeks later...
  • 4 weeks later...

This is great! 

 

I have one minor suggestions: I would love the ability have the option to switch the preview between dark/light mode. Or better yet - could you set the preview colors based on the current Alfred theme?

Link to comment
On 8/20/2022 at 11:13 PM, aaa said:

This is great! 

 

I have one minor suggestions: I would love the ability have the option to switch the preview between dark/light mode. Or better yet - could you set the preview colors based on the current Alfred theme?

 

This has been added in the latest release.

Link to comment
  • 2 weeks later...
On 7/4/2022 at 3:22 PM, arcaydes said:

Does not seem to work for me. Typing msg does nothing and searches alfred as normal. Full disk access is granted.

 

 

I'm having this same issue. Can't seem to find any info on how to debug it either. Here's my system info:

 

Model Name                   :  MacBook Air
Model Identifier             :  MacBookAir10,1
Total Number of Cores        :  8 (4 performance and 4 efficiency)
Memory                       :  16 GB
System Firmware Version      :  7459.141.1
OS Loader Version            :  7459.141.1
Chipset Model                :  Apple M1
Total Number of Cores        :  7
System Version               :  macOS 12.5.1 (21G83)
Kernel Version               :  Darwin 21.6.0
System Integrity Protection  :  Enabled
Time since boot              :  12 days 6:19

 

Link to comment
  • 1 month later...
  • 3 months later...
  • 2 months later...
  • 2 weeks later...
  • 4 weeks later...
  • 7 months later...

@stephancasas I love this workflow. However, I have an issue with cmd + y (or shift). I don't think it's properly displaying the message thread history. I've attached a photo. Is there a solution to make the history properly display?image.thumb.png.1768dfa386e13a9bdf4926317c72ad4e.png

Edited by Forlorn
Forgot to add my question.
Link to comment

@Forlorn Thank you for your kind words.

 

I'm aware of an issue which is causing invalid HTML or, in some cases, no HTML to be written to the disk for preview. A fix has been tested, but I have not had time to implement it yet.

 

If you've installed the workflow via Alfred Gallery, it'll push there once the update is available.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...