Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This unifies the three separate copies of the AppleScript used to query the system’s mode. Each of the three approaches has some changes - `ns-do-applescript` uses AppleScript’s built-in boolean coercion to integer, since it doesn’t support AppleScript booleans; - `mac-do-applescript` _seems_ to return the command output as a string, so this avoids the extra conversion to an AppleScript string and returns the boolean directly; and - `osascript` now uses `process-lines` instead of `shell-command-to-string` which avoids shell invocation, the need to handle any shell escaping in the arguments, and the need to trim the result (which is now a list of output lines).
- Loading branch information