We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75de7b4 commit 559c925Copy full SHA for 559c925
1 file changed
utils.ts
@@ -98,7 +98,9 @@ async function readClipboardImage(): Promise<Uint8Array> {
98
try {
99
const result = await $`osascript \
100
-e ${`set png_data to (the clipboard as «class PNGf»)`} \
101
- -e ${`set f to open for access POSIX file ${JSON.stringify(tmpPath)} with write permission`} \
+ -e ${`set f to open for access POSIX file ${
102
+ JSON.stringify(tmpPath)
103
+ } with write permission`} \
104
-e ${`set eof f to 0`} \
105
-e ${`write png_data to f`} \
106
-e ${`close access f`}`
0 commit comments