Organization & Duplicate Deeplinks
Control Sorty’s core functionality—file organization and duplicate detection—via thesorty:// URL scheme.
File Organization
sorty://organize
Start organizing a directory with AI-powered categorization.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
path | String | No | Absolute path to the directory to organize |
persona | String | No | Persona ID (e.g., developer, photographer, sorty_general) |
autostart | Boolean | No | Automatically begin organization without preview (default: false) |
Examples
Basic - Open organization view:Using the CLI
Thesorty organize command provides a friendlier interface:
Available Personas
| Persona ID | Best For | Key Features |
|---|---|---|
sorty_general | Most users | Standard categories (Documents, Media, Archives) |
developer | Programmers | Groups by project, language, tech stack |
photographer | Photo professionals | Organizes by shoots, dates, camera metadata |
music_producer | Audio creators | Groups projects, samples, stems, sessions |
student | Academic work | Organizes by subject, course, semester |
business | Professional work | Groups by client, project, fiscal period |
Behavior
- Without
autostart: Opens the organization view with the selected folder loaded. User must click “Organize” to begin. - With
autostart=true: Immediately begins AI analysis and shows the organization plan. - Without
path: Opens the organization view; user must select a folder. - Without
persona: Uses the currently selected persona in Settings.
Path Validation
- Path must be an absolute path (e.g.,
/Users/me/Downloads, not~/Downloads) - Path must exist on the file system
- Path must be a directory (not a file)
- User must have read/write permissions
Error Handling
| Error | Cause | Solution |
|---|---|---|
| ”Path not found” | Directory doesn’t exist | Verify the path is correct |
| ”Not a directory” | Path points to a file | Provide a directory path |
| ”Permission denied” | No read/write access | Check file system permissions |
| ”AI not configured” | No AI provider set up | Configure provider in Settings |
| ”Invalid persona” | Persona ID doesn’t exist | Use a valid persona ID or omit parameter |
Duplicate Detection
sorty://duplicates
Scan a directory for duplicate files using SHA-256 content hashing.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
path | String | No | Absolute path to the directory to scan |
autostart | Boolean | No | Automatically begin scanning (default: false) |
Examples
Basic - Open duplicates view:Using the CLI
How Duplicate Detection Works
- Content Hashing: Sorty computes a SHA-256 hash of each file’s content
- Grouping: Files with identical hashes are grouped together
- Metadata: Each duplicate shows filename, size, modification date, and path
- Selection: You choose which copy to keep (oldest, newest, or manual selection)
Behavior
- Without
autostart: Opens the duplicates view with scan settings - With
autostart=true: Immediately begins scanning the specified path - Without
path: Opens the duplicates view; user must select a folder
Safe Deletion
When you delete duplicates, Sorty can use “Safe Deletion” mode:- Enabled (default): Files are tracked and can be restored from History
- Disabled: Files are immediately deleted from disk
Bulk Operations
After scanning, you can use bulk operations:- Delete All (Keep Newest): Removes all duplicates, keeping the most recently modified
- Delete All (Keep Oldest): Removes all duplicates, keeping the original
Workspace Health
sorty://health
Open the Workspace Health monitoring dashboard.Parameters
None.Examples
Open Workspace Health:Using the CLI
What is Workspace Health?
Workspace Health monitors your directories for:- Space Distribution: How disk space is used across file types
- Clutter Growth: Rate of new unorganized files
- Empty Folders: Directories with no contents
- Very Old Files: Files not accessed in 1+ year
- Broken Symlinks: Symbolic links pointing to missing targets
- Duplicate Candidates: Potential duplicate files
Cleanup Opportunities
Sorty identifies actionable insights:- Screenshot Clutter: Many screenshots that could be organized
- Download Clutter: Old files in Downloads folder
- Large Files: Files > 100MB that may need attention
- Temporary Files: Cache and temp files safe to delete
- Unorganized Files: Files in folder root needing organization
Growth Tracking
Weekly insights show:- How much your folders grew
- Which file types are accumulating
- Recommendations for keeping things tidy
History
sorty://history
Open the organization history view with rollback support.Parameters
None.Examples
Open history:Using the CLI
What’s in History?
Each organization session records:- Timestamp: When the organization occurred
- Path: Directory that was organized
- Persona: AI persona used
- File Count: Number of files moved
- Reasoning: AI’s explanation for the organization structure
- Rollback Status: Whether the session can be reverted
Rollback Support
- Click “Revert” to undo an organization
- Files are moved back to their original locations
- Only available if files haven’t been manually moved since
- Alternative: Use ⌘Z immediately after organization
Integration Examples
Alfred Workflow: Organize Downloads
Create a keyword trigger that organizes your Downloads folder:Keyboard Maestro: Weekly Duplicate Scan
Schedule a duplicate scan every Sunday:Hazel: Auto-Organize New Files
When files are added to a folder, trigger organization:Shortcuts: Quick Organize
Create a macOS Shortcut with “Open URLs”:AppleScript: Context-Aware Organization
Advanced Usage
Chaining Operations
You can chain multiple operations using shell scripts:Conditional Organization
Organize only if directory has more than 50 files:Logging Organization History
Keep a log of all organization sessions:Next Steps
- Management Deeplinks - Settings, personas, and utilities
- Deeplinks Overview - URL scheme basics and integration guides
- sorty CLI Reference - Command-line interface documentation