Click the header above for more info about my Adobe scripts.
Click the header above for more info about my auto-logout script.
The scripts in this folder install the latest version of the app if it is not already installed.
Click the header above for more info about my DEPNotify setup scripts.
This script changes the owner of the files specified in the input parameters to the current user. If the path to the file is in the User’s directory, use ~/
(i.e., ~/folder/file.txt)
This script deletes users that have not logged in within the last specified number of days. This script uses multiple input parameters for configuring the script.
Parameters:
Error Codes
51 = Parameter 5 can only contain digits
52 = No value set for Parameter 5
80 = No value(s) for Admin Username/Password
This script deletes items specified in the input parameters.
Parameters:
/
.)Error Codes
40 = No delimiter specified
50 = No folder specified
51 = Specified folder does not exist
52 = Specified folder does not match regex
60 = No items specified
71 = Specified value does not match regex
This script erases and reinstalls the macOS specified in the input parameters.
Parameters:
Error Codes
1 = Failed to install install app
40 = Install app not specified
41 = Install app does not match format
51 = Custom trigger not specified
This script creates an empty plist and gets the used range of an Excel spreadsheet. Then, for every row of the used range, a string key is created with the key set to item 2 and the value set to item 1.
This script gets the choices of a popup computer extension attribute using the Jamf Classic API. The API user will need to have read access to computer extension attributes.
This script gets the installed macOS version and the current macOS version from Jamf’s macOS patch definition. If the installed macOS version matches a regex of the three most recent macOS versions, then the script returns true. If not, the script returns false.
This script gets the current user and checks to see if they’re an admin. If the current user is not in the admin group, then they are added to the group.
This script uses input parameters to run an install application that is inside a DMG.
Parameters:
Error Codes
40 = No DMG specified
41 = Specified DMG does not exist
42 = Unknown problem with DMG variable
50 = No Volume Name specified
51 = Volume does not exist
60 = No Install Application specified
61 = Specified Install Application does not exist
62 = Unknown problem with Install Application
This script follows the instructions from the following Microsoft Support article: Uninstall Office for Mac. It removes the following:
This script uninstalls printers specified in the input parameters.