fix: osascript for clipboard typo (#5430)

This commit is contained in:
Luke Parker 2025-12-13 03:37:43 +10:00 committed by GitHub
parent 2da527aaa6
commit 2e417c4d8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,7 +61,7 @@ export namespace Clipboard {
const getCopyMethod = lazy(() => {
const os = platform()
if (os === "darwin" && Bun.which("oascript")) {
if (os === "darwin" && Bun.which("osascript")) {
console.log("clipboard: using osascript")
return async (text: string) => {
const escaped = text.replace(/\\/g, "\\\\").replace(/"/g, '\\"')