Skip to content

Raycast Integration

The official DesktopRenamer Raycast extension is a reference client for both API surfaces.

The DesktopRenamer Raycast extension page with its commands and screenshots
The companion extension exposes DesktopRenamer controls through Raycast.

Setup

  1. Install DesktopRenamer and the Raycast extension.
  2. Enable SpaceAPI in Settings → General → Advanced.
  3. If access is restricted, open Manage SpaceAPI access and add Raycast under App Permissions.
  4. Grant DesktopRenamer Accessibility permission in System Settings → Privacy & Security → Accessibility.
  5. Open the extension and refresh its space and window data.

The extension uses the structured JSON-RPC SpaceAPI over a Unix-domain socket for automatic and SpaceAPI-mode reads and operations. Approve Raycast itself; the extension connects directly from Raycast rather than through an osascript child process. For older DesktopRenamer versions that predate socket support, it uses DNC only after confirming the older API version. It never falls back to DNC after an access denial or ambiguous socket failure. When SpaceAPI restriction is off, older clients can continue using DNC. The extension is a reference client, not a required dependency.

In current development builds, automatic return is controlled by Automatically return to original space in DesktopRenamer's Settings → Launcher. This app setting applies to SpaceAPI operations across clients; the Raycast extension does not keep a separate preference for it. Batch operations defer per-action returns and restore the starting spaces once when the app setting is enabled.

Full-screen windows

Full-screen spaces are managed differently from regular desktops. Some Accessibility operations require the target application to become active first, and DesktopRenamer may temporarily switch spaces or exit full screen before completing a window action. The command may therefore take longer than a regular desktop operation.

After any move, rearrangement, or full-screen transition, wait for the next SpaceAPI update before refreshing the Raycast UI. Do not cache space identifiers indefinitely.

Diagnosing a missing result

  • Confirm that DesktopRenamer’s API is enabled.
  • If the extension reports that the app is not approved, open Settings → General → Advanced → Manage SpaceAPI access and add Raycast under App Permissions. Re-approve local ad-hoc Raycast or DesktopRenamer builds after rebuilding them.
  • Confirm Accessibility permission and restart DesktopRenamer after changing it.
  • Ensure the client connects to the authenticated socket before sending SpaceAPI requests. DNC-only clients work only when access restriction is off.
  • Re-request GetSpaceList after displays or full-screen applications change.
  • Use osascript to test the AppleScript surface independently of Raycast.