salt.modules.mac_assistive
This module allows you to manage assistive access on macOS minions with 10.9+
New in version 2016.3.0.
salt '*' assistive.install /usr/bin/osascript
-
Enable or disable an existing assistive access application.
- app_id
-
The bundle ID or command to set assistive access status.
- enabled
-
Sets enabled or disabled status. Default is
True
.
CLI Example:
salt '*' assistive.enable /usr/bin/osascript salt '*' assistive.enable com.smileonmymac.textexpander enabled=False
salt.modules.mac_assistive.enable(app_id, enabled=True)
-
Check if a bundle ID or command is listed in assistive access and enabled.
- app_id
-
The bundle ID or command to retrieve assistive access status.
CLI Example:
salt '*' assistive.enabled /usr/bin/osascript salt '*' assistive.enabled com.smileonmymac.textexpander
salt.modules.mac_assistive.enabled(app_id)
-
Install a bundle ID or command as being allowed to use assistive access.
- app_id
-
The bundle ID or command to install for assistive access.
- enabled
-
Sets enabled or disabled status. Default is
True
.
CLI Example:
salt '*' assistive.install /usr/bin/osascript salt '*' assistive.install com.smileonmymac.textexpander
salt.modules.mac_assistive.install(app_id, enable=True)
-
Check if a bundle ID or command is listed in assistive access. This will not check to see if it's enabled.
- app_id
-
The bundle ID or command to check installed status.
CLI Example:
salt '*' assistive.installed /usr/bin/osascript salt '*' assistive.installed com.smileonmymac.textexpander
salt.modules.mac_assistive.installed(app_id)
-
Remove a bundle ID or command as being allowed to use assistive access.
- app_id
-
The bundle ID or command to remove from assistive access list.
CLI Example:
salt '*' assistive.remove /usr/bin/osascript salt '*' assistive.remove com.smileonmymac.textexpander
salt.modules.mac_assistive.remove(app_id)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.mac_assistive.html