Hammerspoon and Lattices.
Which fits your workflow?
Hammerspoon lets you write Lua code to control your Mac. You define the events, window rules, and system behavior that make up your workflow.
A comparison from Lattices · Official documentation reviewed 2026-10-02 · No hands-on benchmark or overall score
When Hammerspoon makes sense
Choose Hammerspoon when you want to build your own automation rules and are willing to learn or edit Lua. It can also help you explore the interface information apps expose through Accessibility.
When to consider Lattices
Lattices provides a defined way to organize projects and groups of windows, with an API for scripts. Hammerspoon is a strong fit when you want to design custom behavior yourself. Connecting the tools would require its own implementation and verification.
The tradeoff to understand
You own the Lua configuration and its maintenance. Accessibility operations depend on what each target app exposes; an accepted action does not by itself prove that the intended interface change occurred.
What Hammerspoon gives you
- Programming model
- Lua configuration connecting events to actions
- Windows
- Window movement, resizing, filters, and multi-window layouts
- System events
- APIs for screens, applications, input, and other macOS services
- Accessibility
- hs.axuielement exposes supported UI attributes and actions
- Extensions
- Reusable plugins called Spoons
- Verification
- Accessibility documentation recommends reading the result after making a change
Try one workflow before switching
Choose a task you repeat and check the tool’s official setup guide. Pay attention to permissions, configuration, and conflicting shortcuts. This page compares documented approaches; it does not establish compatibility between two apps running together.
Go to the source
Documentation reviewed 2026-10-02. Examples are illustrative; this is not a hands-on product benchmark.