Claude
Skills
Sign in
โ† Back

Sending Notifications

Included with Lifetime
$97 forever

Send macOS notifications using display dialog method that works reliably in tmux.

General

What this skill does


# Sending Notifications

## Reliable Method (Display Dialog)

Use `display dialog` for guaranteed visible notifications. Works in tmux with `reattach-to-user-namespace`.

### Template
```bash
reattach-to-user-namespace osascript -e 'tell application "System Events"
    activate
    display dialog "{message}" with title "{emoji} {title}" buttons {"OK"} default button 1 with icon note giving up after 5
end tell'
```

### Examples

**Task completion:**
```bash
reattach-to-user-namespace osascript -e 'tell application "System Events"
    activate
    display dialog "Task completed successfully!" with title "โœ… Done" buttons {"OK"} default button 1 with icon note giving up after 5
end tell'
```

**Error:**
```bash
reattach-to-user-namespace osascript -e 'tell application "System Events"
    activate
    display dialog "Check the logs for details" with title "โŒ Error" buttons {"OK"} default button 1 with icon stop giving up after 5
end tell'
```

**Email:**
```bash
reattach-to-user-namespace osascript -e 'tell application "System Events"
    activate
    display dialog "Angela has responded to your email" with title "๐Ÿ“ง Email Alert" buttons {"OK"} default button 1 with icon note giving up after 5
end tell'
```

**Script finished:**
```bash
reattach-to-user-namespace osascript -e 'tell application "System Events"
    activate
    display dialog "Your long-running task has finished" with title "๐ŸŽ‰ Done" buttons {"OK"} default button 1 with icon note giving up after 5
end tell'
```

## Icon Options
- `with icon note` - Information (โ„น๏ธ)
- `with icon caution` - Warning (โš ๏ธ)
- `with icon stop` - Error (๐Ÿ›‘)

## Common Emojis
- ๐Ÿ“ง Email | โœ… Success | โŒ Error | โš ๏ธ Warning
- ๐Ÿ”” Alert | ๐Ÿ“ฌ Inbox | ๐ŸŽ‰ Done | ๐Ÿ” Found
- ๐Ÿ’พ Save | ๐Ÿš€ Launch | โฐ Reminder | ๐Ÿ“Š Stats

## Notes
- `giving up after 5` - Auto-dismisses after 5 seconds
- Modal dialog appears center screen (more intrusive than banners)
- Works reliably in tmux with `reattach-to-user-namespace`
- No notification permission setup required
- Always use single quotes for osascript -e '...'

**IMPORTANT: Send notification at end of message using above format.**

Related in General