Bear Note-Taking App
Integrate with Bear using its powerful URL scheme.bear-add-note.sh - Create New Note
bear-add-note.sh - Create New Note
Quickly create a new note in Bear with title, content, and clipboard integration.How it works:
- Uses Bear’s
x-callback-urlAPI for deep linking - Takes up to three arguments: title (required), content, and clipboard flag
- If clipboard flag is set, appends clipboard content to the note
percentEncoded: trueensures special characters are properly encoded- Opens Bear app and creates note instantly
bear-search.sh - Search Notes
bear-search.sh - Search Notes
Search Bear notes by keyword or tag.How it works:
- Supports search by term, tag, or both
- Both arguments are optional
- If no arguments provided, simply opens Bear
- Constructs appropriate URL based on which arguments are provided
- Great for quickly jumping to specific notes or browsing by tag
Spotify Music Control
spotify-current-track.applescript - Show Now Playing
spotify-current-track.applescript - Show Now Playing
Display the currently playing Spotify track in Raycast’s menu bar.How it works:
- Checks if Spotify is running before querying
- Uses AppleScript to communicate with Spotify app
- Gets track name, artist, and player state
- Updates every 30 seconds when shown in menu bar
- Shows “(Paused)” indicator when music is paused
Safari Browser Automation
safari-close-duplicated-tabs.applescript - Remove Duplicate Tabs
safari-close-duplicated-tabs.applescript - Remove Duplicate Tabs
Clean up Safari by closing tabs with duplicate URLs.How it works:
- Iterates through all tabs in reverse order (to avoid index shifting)
- Maintains a list of visited URLs
- Closes any tab with a URL that’s already been seen
- Provides feedback on how many duplicates were closed
- Operates on the frontmost Safari window
Things Task Manager
things-create-todo.sh - Add To-Do Item
things-create-todo.sh - Add To-Do Item
Quickly add tasks to Things with optional notes and scheduling.How it works:
- Uses Things URL scheme for task creation
- Supports title (required), notes, and scheduling
whenparameter accepts: “today”, “tomorrow”, “evening”, “anytime”, specific dates- URL encoding ensures special characters work correctly
- Instantly creates and opens the task in Things
Apple Music
apple-music-current-track.applescript - Now Playing Display
apple-music-current-track.applescript - Now Playing Display
Show what’s playing in Apple Music.How it works:
- Similar to Spotify script but for Apple Music
- Refreshes every 10 seconds
- Checks if Music app is running
- Displays track name, artist, and play state
- Shows in Raycast menu bar for quick visibility
Integration Patterns
URL Schemes: Apps like Bear, Things, and Spotify support URL schemes (
app://action?param=value). These are perfect for script commands because they’re fast, don’t require AppleScript support, and work consistently.Creating Your Own Integrations
To integrate with other apps:- Check for URL Schemes - The easiest method. Look in app documentation.
- Try AppleScript - Use Script Editor to test if the app supports AppleScript.
- Use CLI Tools - Some apps provide command-line interfaces.
- Call APIs - Web-based apps can be controlled via HTTP requests.
See Also
System Scripts
Battery, network, and system monitoring
Developer Utils
Git, Docker, and encoding utilities
Media Controls
Music, volume, and playback controls
Productivity
Todo lists, timers, and password managers

