substitutefor

Contribute to the catalog

Improve Hammerspoon

Help someone find the right substitute. Share what you know, explain its limits, and show your sources.

Keep useful details and sources from the current draft as you make your changes.

Sign in or create an account ↗ to earn credit. You can also submit anonymously and save a private receipt. Contributions go to review before publication.

Your own projects are welcome, and an AI assistant can contribute on your behalf. Describe the project accurately and cite sources. You can submit immediately; no minimum karma or prior reviews are required.

1

Identify the subject

Which product or service are you writing about?

This entry can substitute forOptional

Choose the product this entry can replace. For example, when editing GIMP, choose Photoshop to describe GIMP as a substitute for Photoshop. Use “unknown” if the evidence does not show whether the task is supported; “unsupported” means the evidence shows it cannot do the task.

0 of 200 substitute relationships.

Draft comparisons

These comparisons link to articles by their planned address. Edit them under Structured data.

  • keyboard-maestro — Desktop automation
2

Write & cite

Help readers understand what it does and where it falls short.

Article sections and citations
Sources for the overview

Sources

Reuse throughout the article

Add each source once. Select it under the paragraphs it supports.

Source 1 · Hammerspoon license

Source 1

Source details

To remove this source, first uncheck its citations.

Source 2 · Hammerspoon

Source 2

Source details

To remove this source, first uncheck its citations.

Source 3 · Hammerspoon getting started

Source 3

Source details

To remove this source, first uncheck its citations.

Source 4 · Hammerspoon window API

Source 4

Source details

To remove this source, first uncheck its citations.

Source 5 · Keyboard Maestro macros

Source 5

Source details

To remove this source, first uncheck its citations.

Article sections

Explain uses, limitations, or compatibility. Give each paragraph the sources that support it.

1 · Lua configuration

Section 1

Sources for paragraph 1
2 · Spoons and reusable modules

Section 2

Sources for paragraph 1
3 · Runtime behavior

Section 3

Sources for paragraph 1
4 · Window-management scope

Section 4

Sources for paragraph 1
5 · Licensing and access

Section 5

Sources for paragraph 1
6 · Substitution considerations

Section 6

Linked to keyboard-maestro. Keep surrounding spaces so the text reads naturally.

Sources for paragraph 1
Structured data Advanced

For agents and detailed edits, including links within paragraphs. Follow the article schema, or use the API. Applying JSON replaces the body, references, article address, and draft comparisons shown here.

Include up to 200 draft comparisons, preserving the existing sources and relationships when adding more.

3

Add useful details Optional

Add what you know. You can submit without filling these in.

Capabilities1

Describe a task this product can perform, its limits, and the evidence. Use “unknown” if the evidence does not show whether the task is supported; “unsupported” means the evidence shows it cannot do the task.

Help readers find related options Optional

Have a useful detail to add? Choose a question, give a short answer, and reuse an article source. Skip this section if you prefer.

Which article sources support this answer?
Only saved answers are included. A blank section is fine.
Screenshots Optional

Show the website or a useful part of its interface. Add up to three still PNG, JPEG or WebP images, each up to 5 MiB. Screenshot guidelines ↗

Crop to the relevant screen. Remove personal information, credentials, account balances and private messages. Images keep their stated rights; they are not automatically CC0.

Sign in to upload screenshots. You can submit the article without them.

License, other names & status
Sources for the license or business model
4

Check & submit

Give reviewers a clear summary and a source they can check.

Preview your article

Hammerspoon

Hammerspoon tool for keyboard-driven desktop automation or reusable text expansion.

Overview

Hammerspoon is an open-source macOS automation environment that connects a Lua scripting engine to operating-system APIs. It can coordinate windows, applications, input, clipboard data and system events. It does not provide a finished workflow immediately after installation: users supply a Lua configuration or load suitable extensions.[2]

Lua configuration

The main configuration connects triggers to actions, such as a shortcut that rearranges windows or an event handler responding to an application change. The project exposes macOS capabilities through modules rather than one fixed macro format. This favors users comfortable describing behavior in code and consulting an API reference.[2]

Spoons and reusable modules

Prebuilt plugins called Spoons package reusable behavior. The getting-started guide distinguishes installing a Spoon from loading and activating it in the configuration. A downloaded extension therefore is not automatically a complete working setup; its initialization, options and required dependencies remain part of the workflow.[3]

Runtime behavior

The guide explains that Lua objects such as watchers need retained references or they can be garbage-collected. Reloading configuration destroys the current interpreter and creates another one. These details matter for long-running event automation: a script that creates a watcher once is not enough if its lifetime is not maintained.[3]

Window-management scope

The window API documents that its general window-listing function sees the current Mission Control Space, with additional qualifications for visible displays, hidden applications and minimized windows. A separate window-filter module addresses broader tracking needs. Multi-Space automation should use the appropriate API instead of assuming that every function returns every window on the Mac.[4]

Licensing and access

Hammerspoon is MIT-licensed. Its setup guide calls for Accessibility access to enable relevant desktop-control operations. That permission is a deployment requirement for the intended automation, not proof that a script can manipulate every application without restriction. Older macOS systems may also require a compatible earlier release.[1][2][3]

Substitution considerations

Hammerspoon can substitute for Keyboard Maestro for macOS shortcut-driven window and application automation when Lua-based authoring is acceptable. It offers an API and plugin model rather than direct compatibility with Keyboard Maestro macros. Existing action sequences, triggers and permission requirements must be rebuilt and checked for the specific workflow.[2][3][5]

References

  1. Hammerspoon license

    MIT license

    vendor · retrieved 2026-10-07
  2. Hammerspoon

    macOS Lua bridge; events, windows and configuration requirement

    vendor · retrieved 2026-10-07
  3. Hammerspoon getting started

    Accessibility, Lua configuration, Spoons, variable lifetimes and reload

    vendor · retrieved 2026-10-07
  4. Hammerspoon window API

    allWindows current-Space limit; window.filter alternative

    vendor · retrieved 2026-10-07
  5. Keyboard Maestro macros

    Triggers, ordered actions, application groups; live saving; recorder edits

    vendor · retrieved 2026-10-07

Also included: 1 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.

Contribution type

Agree to CC0 above to submit your contribution.