Skip to content

moofit/mobileconfig_automator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 

Repository files navigation

Logo

Mobileconfig Automator

Table of Contents

Purpose

Do you find yourself having to convert .plist files to xml so you can edit them? Do you create .mobileconfig files from .plist files using mcxtoprofile.py? Do you download configuration profiles from your JSS and have to remove the signing and convert to xml? Then these little automator contextual menus are for you!

Includes

These automator services that let you:

  • Convert to XML1 - Right-click on a .plist file, copy it to the desktop and convert it to xml1 (so you can edit it in a text editor)
  • Create MobileConfig - Right-click on a xml1 .plist file and create a .mobileconfig from it (uses mcxtoprofile.py and assumes you've got the python script in your default path)
  • De-Sign MobileConfig - Right-click on a .mobileconfig file downloaded from your JSS, remove the JSS signing and convert to xml1 (so you can edit it in a text editor)

How to use

Downloading and installing

You can download a zipped copy of the .workflow files here: https://github.com/moofit/xmlAutomator/releases Unzip and drop them into your ~/Library/Services folder to install.

Usage

Right click on the relevant .plist or .mobile config file and select the action from the services menu. If you only have a couple of services they will be available directly in the contextual menu.

Important Note 1 - You need to have a copy of mcxtoprofile (https://github.com/timsutton/mcxToProfile/blob/master/mcxToProfile.py) in your default path. Copy it to somewhere like /usr/local/bin/ to use the automator service.

Important Note 2 - You can only use the mcxtoprofile service on an xml1 .plist file. If its in binary format, use the xml1 convertor first.

Important Note 3 - Add the .workflow files to ~/Library/Services so they appear in your contextual menu.

How to contribute

  1. Fork this project, if required
  2. Create a new branch (git checkout -b myNewBranch)
  3. Make changes, and commit (git commit -am "myChanges")
  4. Push to the new branch (git push origin myNewBranch)
  5. Create new pull request

Support

Use at your own risk. Moof IT will accept no responsibility for loss or damage caused by these scripts. Contact Moof IT if you need a custom script tailored to your environment.

License

This work is licensed under http://creativecommons.org/licenses/by/4.0/.

These scripts may be freely modified for personal or commercial purposes but may not be republished for profit without prior consent.

Thanks to the Mac Mule for the openssl code - https://macmule.com/2015/11/16/making-downloaded-jss-configuration-profiles-readable/

About

Utility to convert plist files from XML to Binary and back again

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •