Sorty provides comprehensive URL scheme support via theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/shirishpothi/Sorty/llms.txt
Use this file to discover all available pages before exploring further.
sorty:// protocol, enabling external automation, AppleScript integration, and custom workflow creation.
Overview
Deeplinks allow you to:- Launch specific views and features directly
- Trigger organization tasks from other apps
- Create Shortcuts app workflows
- Build custom automation scripts
- Integrate with AppleScript and shell scripts
URL Scheme Format
Organization Routes
Organize Directory
Route:sorty://organize
Start organizing a directory with optional persona selection and auto-start.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | No | Absolute path to directory to organize |
persona | string | No | Persona ID (e.g., developer, photographer) |
autostart | boolean | No | Auto-start organization (true/false) |
generalorsorty_general- General purposedeveloper- Software developmentphotographer- Photography workflowmusic_producer- Audio productionstudent- Academic workbusiness- Business documents- Custom persona IDs you’ve created
Duplicate Scanning
Scan for Duplicates
Route:sorty://duplicates
Open the duplicate scanner for a specific directory.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | No | Absolute path to directory to scan |
autostart | boolean | No | Auto-start scanning (true/false) |
Persona Management
Create or Generate Personas
Route:sorty://persona
Manage personas or generate new ones using AI.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | No | Action to perform (create or generate) |
prompt | string | No* | Description for AI generation (*required if generate=true) |
generate | boolean | No | Trigger AI generation immediately |
Configuration Routes
Watched Folders
Route:sorty://watched
Manage watched folders for automatic organization.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | No | Action to perform (add) |
path | string | No* | Path to add as watched (*required if action=add) |
Exclusion Rules
Route:sorty://exclusions
Manage file exclusion rules.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | No | Action to perform (add) |
pattern | string | No* | Glob pattern to exclude (*required if action=add) |
Storage Locations
Route:sorty://storage
Manage custom storage destinations.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | No | Action to perform (add) |
path | string | No* | Path to add as storage location (*required if action=add) |
Settings
Route:sorty://settings
Open app settings, optionally jumping to a specific section.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
section | string | No | Settings section to open |
rules- Exclusion rulesprovider- AI provider configurationstrategy- Organization strategytuning- Temperature and model tuningautomation- Automation settingsfinder- Finder extensionnotifications- Notification preferencesadvanced- Advanced settingstroubleshooting- Troubleshooting toolshelp- Help documentation
Navigation Routes
Workspace Health
Route:sorty://health
Open the Workspace Health monitoring view.
Example:
The Learnings
Route:sorty://learnings
Open The Learnings dashboard with optional actions.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | No | Action to perform (honing, stats) |
History
Route:sorty://history
Open the organization history view.
Example:
Help
Route:sorty://help
Open the help documentation, optionally jumping to a specific section.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
section | string | No | Help section (e.g., updates) |
AppleScript Integration
Use deeplinks in AppleScript for advanced automation:Basic Organization
Conditional Organization
Generate Persona from Selection
Shortcuts App Integration
Create powerful workflows using the Shortcuts app:Example: Organize Current Folder
- Add Get Folder action
- Add Get Variable action (select Folder)
- Add URL Encode action
- Add Text action:
- Add Open URLs action
Example: Daily Downloads Cleanup
- Add Text action:
- Add Open URLs action
- Schedule to run daily at 9 AM
Example: Smart Duplicate Scanner
- Add Ask for Input (File Picker)
- Add Get Variable → URL Encode
- Add Text:
- Add Open URLs
Shell Script Integration
URL Encoding Helper Function
Organize with Encoded Path
Interactive Persona Generator
Common Patterns
Weekly Automation
Use a LaunchAgent to run weekly organization:Hazel Integration
Trigger organization when folder size exceeds threshold:- Create Hazel rule: “Folder size is greater than 1 GB”
- Action: Run shell script
Alfred Workflow
Create a keyword trigger:- Keyword:
org {query} - Action: Open URL
URL Encoding Reference
Common characters that need encoding:| Character | Encoded |
|---|---|
| Space | %20 |
/ | / (safe) |
? | %3F |
& | %26 |
= | %3D |
# | %23 |
% | %25 |
Troubleshooting
Deeplink doesn't open the app
Deeplink doesn't open the app
- Ensure Sorty.app is installed in
/Applications - Verify the URL scheme is correctly formatted
- Check that there are no typos in the route name
- Try running from Terminal:
open "sorty://health"
Path parameter not working
Path parameter not working
- Ensure the path is absolute (starts with
/) - Verify the path exists and is a directory
- Check that the path is properly URL-encoded
- Use
python3URL encoding for complex paths
Autostart parameter ignored
Autostart parameter ignored
- The value must be exactly
true(lowercase) - Verify AI provider is configured in Settings
- Check that the target directory is accessible
Persona not recognized
Persona not recognized
- Use the persona ID, not the display name
- Check available persona IDs in Settings
- Ensure custom personas use their unique ID
Security Considerations
Reference Table
Complete deeplink reference:| Route | Primary Use | Key Parameters |
|---|---|---|
sorty://organize | Start organization | path, persona, autostart |
sorty://duplicates | Scan duplicates | path, autostart |
sorty://persona | Manage personas | action, prompt, generate |
sorty://watched | Watched folders | action, path |
sorty://exclusions | Exclusion rules | action, pattern |
sorty://storage | Storage locations | action, path |
sorty://settings | Open settings | section |
sorty://health | Workspace health | None |
sorty://learnings | The Learnings | action |
sorty://history | View history | None |
sorty://help | Open help | section |
Next Steps
CLI Tools
Learn about the command-line interface
Finder Integration
Set up Finder extension for right-click organization