-
Posts
11 -
Joined
-
Last visited
-
Days Won
1
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by stephancasas
-
-
4 hours ago, vitor said:
Note that AppleScript has an Objective-C bridge too. The syntax can be tricky to get right, but it is there. It’s one way to make it support JSON.
I wasn't aware this was still working, but that's good to know!
-
-
9 hours ago, jacobwtyler said:
Holy crap. That java script is magic. You guys are amazing! Thank you for sharing. The other script in this thread that I said was working suddenly stopped working and was giving me an error about "group 1" so I came back here and gave this javascript a try. It looks so complicated compared to the other one but worked perfectly! Really cool stuff. Wish I could make stuff like that.
I'm glad it it working well for you. JXA is very poorly documented by Apple and can be very confusing but, because it provides nearly direct access to the Obj-C runtime APIs, it is lightning-fast compared to traditional AppleScript. If you'd like to learn more about it, a great resource is the JXA Cookbook on GitHub.
-
@Tony D, use the Run Script workflow node, and set the language to /𝚞𝚜𝚛/𝚋𝚒𝚗/𝚘𝚜𝚊𝚜𝚌𝚛𝚒𝚙𝚝 (𝙹𝚊𝚟𝚊𝚂𝚌𝚛𝚒𝚙𝚝).
-
I see a lot of scripts targeting System Settings, but this can be achieved much faster using Control Center.
Here's a JXA AppleScript you can paste into an Alfred workflow to toggle Sidecar via control center:
https://gist.github.com/stephancasas/a36c81fbc4189f46bc803f388a1985be
Cheers.
-
@sepulchra It does not. This will be a feature in the upcoming native app, however.
-
If you use Tailwind CSS, you may encounter the need to convert classes to their CSS3-equivalent styles. Tailwind2CSS for Alfred can help with this.
-
Sumboard — Add numbers from Alfred's pasteboard history
Hi, all:
I made this workflow to sum the most recently-copied numbers in Alfred's pasteboard history.
Enjoy!
- Diegobit, cands and alfredpanda
- 3
-
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.
-
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:
- Open System Preferences
- Choose Security and Privacy
- Choose Privacy
- Select Full Disk Access
- Unlock the 🔒 in the bottom left corner.
-
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.
Mouseless Messenger — iMessage/SMS Preview and Reply for Alfred
in Share your Workflows
Posted
@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.