UNPKG

@guidepup/setup

Version:

Setup your environment for screen-reader automation.

14 lines (13 loc) 561 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.enableAppleScriptControlSystemDefaults = enableAppleScriptControlSystemDefaults; const child_process_1 = require("child_process"); const errors_1 = require("../errors"); function enableAppleScriptControlSystemDefaults() { try { (0, child_process_1.execSync)("defaults write com.apple.VoiceOver4/default SCREnableAppleScript -bool true"); } catch (e) { throw new Error(`${errors_1.ERR_MACOS_UNABLE_UPDATE_SYSTEM_DEFAULTS}\n\n${e.message}`); } }