applescript

Enabling voice control in AppleScript Ventura

Enabling voice control in AppleScript Ventura Question: I am trying to use AppleScript to press the switch for activating voice control in macOS Ventura. The first switch in this image where it toggles voice control: I tried the following apple script: do shell script "open -b com.apple.systempreferences " & ¬ "/System/Library/PreferencePanes/UniversalAccessPref.prefPane" tell application "System Events" …

Total answers: 3

Communicating with root child process launched with osascript "with administrator privileges"

Communicating with root child process launched with osascript "with administrator privileges" Question: How can I pass messages between a parent process that launches a child process as root using Apple Script and stdin/stdout? I’m writing an anti-forensics GUI application that needs to be able to do things that require root permissions on MacOS. For example, …

Total answers: 1

Applescript call python failed

Applescript call python failed Question: I have developed an AppleScript which needs to call a python file. i.e autorun.py the Autorun.py start with import msoffcrypto import pathlib import os …. Both the AppleScript and the python file run fine. I even tried to call autorun.py in the terminal and that also runs with no problem. …

Total answers: 1