Deploy a Keynote app template programmatically
Sometimes we want to programmatically set up a template for Keynote application. There is a demand for distributing templates, especially in organizations.
The script will require three arguments.
./keynote-template-deployment.sh <Keynote template URL> <Display name of theme selector> <Type of specify the local users to be deployed>
This script supports Jamf Pro.
- Upload this script to Jamf Pro.
- Create new policy with the script.
- Set arguments for the script.
- (Parameter 4) Keynote template URL
- (Parameter 5) Display name of theme selector
- (Parameter 6) Type of specify the local users to be deployed
current
all
You can use files that are hosted remotely.
./keynote-template-deployment.sh "https://exmaple.com/sample.kth" "My Company Theme" "all"
You can also use the file://
protocol to refer to local files. If you want to refer to /tmp/sample.kth
, you should run the following command:
./keynote-template-deployment.sh "file:///tmp/sample.kth" "My Company Theme" "all"
You can specify the name to be displayed in the Keynote appplication theme selector.
You can select one of the following values.
all
- Applies to all local users of the device being run
- root privilege is required
current
- Applies only to the currently running user
# If you want to deploy to all local users of the target device, specify the value `all` as the third argument.
./keynote-template-deployment.sh "https://example.com/sample.kth" "My Company Theme" "all"
# If you want to apply it only to the current user of the target device, specify the value `current` as the third argument.
./keynote-template-deployment.sh "https://example.com/sample.kth" "My Company Theme" "current"