(s: string)
| 28 | * literal but we collapse them so the notification stays one tidy line. |
| 29 | */ |
| 30 | export function escapeAppleScript(s: string): string { |
| 31 | return s.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\s*\n\s*/g, ' ').trim(); |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Show a desktop notification. Fire-and-forget: returns immediately, resolves |