Would it be possible to make this abortable by passing an AbortController
on to execa
?
const abortController = new AbortController();
const options = {signal: abortController.signal};
const result = await runAppleScript(scpt, [], options);
and in runAppleScript
:
export async function runAppleScript(script, {humanReadableOutput = true} = {}, options) {
// ...
const {stdout} = await execa('osascript', ['-e', script, outputArguments], options);
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too