RB
← Back to Notebook šŸ““
2026-08-01•By Ritesh Barman

macOS Power Tools: Add 'Open in Antigravity IDE' Quick Action to Finder

#macOS#Finder#Automator#Antigravity IDE

Original Content Disclaimer: This guide is based on my personal experience automating Finder workflows on macOS. All steps and instructions are original and provided for educational purposes.

If you frequently work with Antigravity IDE, opening projects directly from Finder can save time. This guide shows how to create a Finder Quick Action that adds an Open in Antigravity IDE option to the right-click context menu.

Prerequisites

  • āœļømacOS
  • āœļøAntigravity IDE installed in the <span class="vs-class">Applicationsspan> folder

Step 1: Verify the Application Name

Before creating the Quick Action, ensure macOS recognizes the application name.

Open Terminal and run:

ls /<span class="vs-class">Applicationsspan>

You should see something similar to:

<span class="vs-class">Antigravityspan> <span class="vs-class">IDEspan>.app

or

<span class="vs-class">Antigravityspan>.app

Next, verify that the application can be opened using the open command.

open -a "Antigravity IDE"

If the IDE launches successfully, continue to the next step.


Step 2: Open Automator

  1. āœļøPress ⌘ + Space to open Spotlight.
  2. āœļøSearch for Automator.
  3. āœļøLaunch the Automator application.

Step 3: Create a Quick Action

  1. āœļøClick New Document.
  2. āœļøSelect Quick Action.
  3. āœļøClick Choose.

Step 4: Configure the Workflow

At the top of the workflow, configure the following settings:

| Setting | Value | |---------|-------| | Workflow receives current | Files or Folders | | In | Finder |

No other changes are required.


Step 5: Add the "Run Shell Script" Action

  1. āœļøIn the search bar on the left, search for:
<span class="vs-class">Runspan> <span class="vs-class">Shellspan> <span class="vs-class">Scriptspan>
  1. āœļøDrag the action into the workflow.

Step 6: Configure the Shell Script

Update the action with the following settings:

| Setting | Value | |---------|-------| | Shell | /bin/zsh | | Pass Input | As Arguments |

Passing the input as arguments allows Finder to send the selected files or folders to the script.


Step 7: Add the Shell Script

Replace the default script with the following:

#!/bin/zsh

<span <span class="vs-keyword">classspan>="vs-keyword">forspan> file in "$@"; do
    open -a "Antigravity IDE" "$file"
done

How the Script Works

  • āœļø"$@" contains every selected file or folder.
  • āœļøThe loop processes each selected item.
  • āœļøopen -a launches the specified application.
  • āœļøThe selected file or folder is opened in Antigravity IDE.

This script supports:

  • āœļøOpening a single file
  • āœļøOpening multiple files
  • āœļøOpening folders
  • āœļøOpening multiple folders

Step 8: Save the Quick Action

Press:

⌘ + <span class="vs-class">Sspan>

Save the workflow with the name:

<span class="vs-class">Openspan> in <span class="vs-class">Antigravityspan> <span class="vs-class">IDEspan>

Step 9: Test the Quick Action

  1. āœļøOpen Finder.
  2. āœļøRight-click any file or folder.
  3. āœļøSelect:
<span class="vs-class">Quickspan> <span class="vs-class">Actionsspan>
    <span class="vs-class">Openspan> in <span class="vs-class">Antigravityspan> <span class="vs-class">IDEspan>

Depending on your macOS version, it may instead appear under:

<span class="vs-class">Servicesspan>
    <span class="vs-class">Openspan> in <span class="vs-class">Antigravityspan> <span class="vs-class">IDEspan>

Click the option, and the selected file or folder should open in Antigravity IDE.


Enable the Quick Action (Optional)

If the Quick Action does not appear:

  1. āœļøOpen System Settings.
  2. āœļøNavigate to:
<span class="vs-class">Privacyspan> & <span class="vs-class">Securityspan>
→ <span class="vs-class">Extensionsspan>
→ <span class="vs-class">Finderspan>
  1. āœļøEnable:
<span class="vs-class">Openspan> in <span class="vs-class">Antigravityspan> <span class="vs-class">IDEspan>

Assign a Keyboard Shortcut (Optional)

You can also launch the Quick Action using a keyboard shortcut.

Navigate to:

<span class="vs-class">Systemspan> <span class="vs-class">Settingsspan>
→ <span class="vs-class">Keyboardspan>
→ <span class="vs-class">Keyboardspan> <span class="vs-class">Shortcutsspan>
→ <span class="vs-class">Servicesspan>

Locate:

<span class="vs-class">Openspan> in <span class="vs-class">Antigravityspan> <span class="vs-class">IDEspan>

Assign your preferred shortcut, for example:

⌃⌄<span class="vs-class">Aspan>

Result

You can now open any file or folder directly in Antigravity IDE by right-clicking it in Finder and selecting Open in Antigravity IDE, making it easier to launch projects without opening the IDE first.