Code Monkey home page Code Monkey logo

alfred-mouseless-messenger's Introduction

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 or 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 your eight (8) most recent conversations in the Messages app.

  • To preview a message thread, press the SHIFT key while a conversation is selected.

  • 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.
  • To export the conversation preview as an HTML document, hold the OPTION key while pressing the ENTER or RETURN key. The conversation preview will be exported to your Downloads folder.

  • To export the conversation preview as a PDF document, hold the COMMAND key while pressing the ENTER or RETURN key. The conversation preview will be exported to your Downloads folder.

    • Google Chrome must be installed to use this feature.

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 here on GitHub.

License

MIT — Hell yeah, free software!

alfred-mouseless-messenger's People

Contributors

stephancasas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

alfred-mouseless-messenger's Issues

Preview Message Thread

I'm trying to preview message threads and Shift doesn't do anything. When I export to PDF it is a blank document with the time stamp at the top and the file location at the bottom.

Error on run, nothing seems to happen

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)

Can't see message history

img
For some reason I can't get the whole message history or thread with previous messages. I press SHIFT and an empty page pops up like this. Same when I tried to save as pdf or as html, there's nothing there.

cannot see sent messages

I'm noticing that messages I'm sending are not showing up is there a trick to getting them to show up. I need both sides of the conversation (with time stamps if possible) to forward into a CRM entry so I can document a conversation. Thanks in advance for the help!

Full Disk Access is enabled ✔️
Messages are being synced via iCloud ✔️
OS Ventura 13.2
Alfred 5.0.6

image

Workflow doesn't run if kCFPreferencesAnyApplication → AppleInterfaceStyle is nil + Use System Setting is selected for Color Scheme

Hey @stephancasas 👋 I'm on Sonoma 14.1 (23B73) RC. First time I ran the Workflow, it errored out with:

screenshot_rli69FPl

image

Was easy to guess the problem, on my system AppleInterfaceStyle doesn't seem to exist in my NSGlobalDomain. Even manually setting it to "Dark" and then back to "Light" in Sysprefs didn't change things:

$ defaults read -g AppleInterfaceStyle
2023-10-24 08:38:42.826 defaults[65397:6990884]
The domain/default pair of (kCFPreferencesAnyApplication, AppleInterfaceStyle) does not exist

So, I set the Workflow manually to "Light" and it works great (amazing workflow btw 🎉 ) Seems like this is the same problem... maybe you can trap for that and avoid the error?

Here's my System Settings → Appearance btw

screenshot_g7TG1LXS

v2 Non-Ascii Characters in Contact Names Display Incorrectly When Replying

Hello,
Just upgraded to v2. Wanted to let you know that any contacts that have accents in their names (José, Lucía, Ordoñez) etc. do display correctly in the list of messages, but do not display correctly on the next screen where you actually type your reply. They all look like this: AÃÉEÄÃez or like AÃÉAÂäa instead of whichever accent it should actually be. Not a deal-breaker at all, but just wanted to make sure you were aware of it. Thanks!

Error on first start

Hi, I followed the guide, however I have this error in debug:

[13:52:27.807] Logging Started...
[13:52:29.735] Mouseless Messenger[Script Filter] Queuing argument '(null)'
[13:52:30.104] Mouseless Messenger[Script Filter] Script with argv '(null)' finished
[13:52:30.107] ERROR: Mouseless Messenger[Script Filter] Code 1: /Users/superandrew/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/DEB99AC7-FAB3-4183-B750-7BCA25029A02: execution error: Error: TypeError: null is not an object (evaluating 'message_body.replace') (-2700)
[13:53:05.780] Mouseless Messenger[Script Filter] Queuing argument '(null)'
[13:53:06.197] Mouseless Messenger[Script Filter] Script with argv '(null)' finished
[13:53:06.202] ERROR: Mouseless Messenger[Script Filter] Code 1: /Users/superandrew/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/94FC029E-A2B3-48D7-BED2-C4FDF66A5804: execution error: Error: TypeError: null is not an object (evaluating 'message_body.replace') (-2700)

Filter out conversations based on sender name

Hi @stephancasas , thanks for this great workflow! Would it be possible to add the option of filtering out conversations from the list, based on the sender name?

My use case is that I'm not interested in seeing all of the "conversations" where the sender name is all numbers:

image

Thanks!

enhancement - plain text export

Not sure if I submitted this before, however having a plain text export would be awesome. Could be mapped to the control key when reviewing the message.

Also, anyone to put the contact info in the header of the exported messages? I'm trying to forward this in an email and it would be nice if I could include information from the contact such as contact's name, phone number & email from the contact record if possible.

I use the export function to export SMS messages to our CRM and need this info to link it to the contact.

Thanks in advance!

Unknown error

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.