- 🖱️ Right-click integration in Finder context menu
- 📁 Open files and folders directly in Cursor
- 🪄 Background area support for quick access
- ⚡ Lightning-fast workflow enhancement
- 🔒 Secure local implementation
- macOS 10.15 or later
- Cursor IDE installed in your Applications folder
- Administrative access for setup
-
Launch Automator from your Applications
-
Create a New Document → Select Quick Action
-
Configure workflow settings:
Workflow receives current: files or folders Application: Finder
-
Add Run Shell Script action with settings:
- Shell:
/bin/bash
- Pass input:
as arguments
- Shell:
-
Insert the following script:
#!/bin/bash
cursorExePath="$HOME/Applications/Cursor.app/Contents/MacOS/Cursor"
if [ -f "$cursorExePath" ]; then
open -a "$cursorExePath" "$@"
else
osascript -e 'display notification "Cursor executable not found" with title "Error"'
fi
Click to expand AppleScript configuration
- Open Script Editor from Applications
- Create new script with:
set cursorExePath to (POSIX path of (path to home folder)) & "Applications/Cursor.app/Contents/MacOS/Cursor"
if (do shell script "test -f " & quoted form of cursorExePath) is "0" then
do shell script quoted form of cursorExePath
else
display notification "Cursor executable not found" with title "Error"
end if
- Save as application named
Open with Cursor
in Applications
Click to expand service setup
- Create
com.cursor.openwithcursor.plist
:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.cursor.openwithcursor</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/open</string>
<string>-a</string>
<string>Open with Cursor</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
- Save to
~/Library/LaunchAgents/
launchctl load ~/Library/LaunchAgents/com.cursor.openwithcursor.plist
- Files/Folders: Right-click → Services → Open with Cursor
- Finder Background: Right-click empty area → Open with Cursor
Common Issues & Solutions
- Verify Cursor.app is in Applications folder
- Restart Finder:
killall Finder
- Reload launch agent:
launchctl unload ~/Library/LaunchAgents/com.cursor.openwithcursor.plist launchctl load ~/Library/LaunchAgents/com.cursor.openwithcursor.plist
- Check System Preferences → Security & Privacy → Privacy → Automation
- Ensure Automator and Script Editor have necessary permissions
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by the rajeshkanaka