A Raycast extension that uses AI to intelligently rename screenshot and image files based on their content.
- AI-Powered Naming: Uses Google Gemini to analyze your screenshots and create descriptive, meaningful filenames
- Batch Processing: Select multiple screenshots at once to rename them all in one go
- Finder Integration: Directly rename multiple files selected in Finder
- User-Friendly UI: Simple interface with clear feedback on the renaming process
- Adjustable Batch Size: Control how many files are processed simultaneously
- Make sure you have Raycast installed
- Clone this repository
- Open the directory in your terminal
- Run
npm install
to install dependencies - Run
npm run dev
to start the development server and install the extension in Raycast
The extension requires a Google Gemini API key to analyze your screenshots:
-
Get a Google Gemini API key:
- Go to Google AI Studio
- Create an API key (free to start)
- Copy your API key
-
Open Raycast and go to the extension settings for "Rename Tidy Titles"
- Enter your Google Gemini API key
-
Optional: Adjust batch size to control how many files are processed at once
The extension uses Google Gemini's vision capabilities to analyze the content of each screenshot and generate a descriptive filename. For example:
- A screenshot of a chart might be renamed to
sales_chart.png
- A screenshot of a login page might be renamed to
login_page_ui.png
This makes it much easier to search for specific screenshots later, as the filenames actually describe the content.
Gemini 1.5 Flash offers excellent image understanding at a low cost, and most new Google AI accounts start with a free quota.
- Open Raycast and search for "Rename Screenshots"
- Click "Select Screenshots" to choose the image files you want to rename
- Click "Rename Screenshots" to start the AI analysis and renaming process
- Review the results in the list view
- Select screenshot files in Finder
- Open Raycast and search for "rename" (or "Rename Selected Files")
- Press Enter - files will be renamed instantly without additional steps
- A toast notification will confirm when renaming is complete
The Instant Rename method is perfect for quickly renaming files with a single command while you continue working.
Before:
Screenshot 2023-11-15 at 10.32.45.png
Screenshot 2023-11-16 at 15.20.33.png
After:
sales_dashboard_chart.png
login_page_ui.png
- Raycast v1.50.0 or higher
- Node.js v16 or higher
- Google Gemini API key (required)
- Make sure you've created an API key in Google AI Studio and have accepted the terms of service
- Verify that you've entered the API key correctly in the extension preferences
If you encounter rate limit errors:
- Check your Google AI Studio quota
- Most new accounts start with a free quota that's generous for personal use
- You may need to set up billing if you're processing large batches of images
- Processing Large Batches: Try renaming in smaller batches by reducing the batch size in preferences
- File Permission Issues: Make sure Raycast has permission to access and modify the files
- File Selection Issues: If files aren't being detected, make sure you've selected them in Finder first
MIT