Skip to content

Conversation

@vigosan
Copy link
Contributor

@vigosan vigosan commented Oct 25, 2025

Description

This script allows users to quickly move selected files or folders to the Trash directly from Finder. Unlike existing trash scripts that operate on entire directories (Desktop, Downloads), this command works with any files/folders currently selected in Finder, making it more flexible and user-friendly.

Features:

  • Works with multiple selected items (files and folders)
  • Handles filenames with spaces correctly
  • Executes silently without confirmation for quick workflow
  • Uses native Finder trash functionality

Type of change

  • New script command
  • Bug fix
  • Improvement of an existing script
  • Documentation update
  • Toolkit change
  • Other (Specify)

Screenshot

CleanShot 2025-10-25 at 12 52 59@2x _Screenshot showing the command appearing in Raycast with the System package icon._

Dependencies / Requirements

None. This script uses only native macOS tools:

  • Bash (built-in)
  • AppleScript/osascript (built-in)
  • Finder (built-in)

No additional installation or configuration required.

Checklist

This script allows users to quickly move selected files or folders
to the Trash directly from Finder. Unlike existing trash scripts that
operate on entire directories (Desktop, Downloads), this command works
with any files/folders currently selected in Finder, making it more
flexible and user-friendly.

Features:
- Works with multiple selected items (files and folders)
- Handles filenames with spaces correctly
- Executes silently without confirmation for quick workflow
- Uses native Finder trash functionality
@vigosan vigosan force-pushed the add-delete-selected-files branch from 8cd0728 to 65cecc7 Compare October 25, 2025 11:06
Copy link
Contributor

@nhojb nhojb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the submission.

@nhojb nhojb merged commit dfd9acb into raycast:master Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants