Worklet - Add Custom Office Templates for O365 - Mac

  • 14 September 2020
  • 0 replies
  • 27 views

Hi Everyone,

The below code will install a custom office template for O365 on Mac’s. All that’s needed is to upload the custom template and change the sampletemplate.dotx references to your own. Confirmed working with Dotx and Potx files.


#!/bin/sh
scp sampletemplate.dotx /private/tmp/

currentUser=$(/bin/ls -l /dev/console | /usr/bin/awk '{print $3}')
sudo -u "$currentUser" cp /private/tmp/sampletemplate.dotx /Users/$currentUser/library/"group containers"/ubf8t346g9.office/"user content.localized"/templates.localized/

0 replies

Be the first to reply!

Reply