Kelley Computing scripts page


changeShortName Mac OS X v.10.3 +

View

changeShortName.command (Plaintext - 4KB)
Download changeShortName.dmg (Disk Image - 12KB)

This script will attempt to change a user's short name in Mac OS X

For some reason, it is currently impossible to change the short name of a user in Mac OS X using any kind of GUI or any straight-forward command-line utility. This script attempts to make possible the process of changing the user's short name, as well as all user attributes with the same name, any groups with this short name set as their name, and any groups that the user belongs to.

*Most of the work in the changeShortName script is done by the dscl instead of nicl to maintain forward compatibility (thanks Dawe!).


changeUID Mac OS X v.10.3 +

View

changeUID.command (Plaintext - 4KB)
Download changeUID.dmg (Disk Image - 12KB)

This script will attempt to change a user's UID (UniqueID) and other values in Mac OS X v.10.3 and higher.


Create Desktop Folder Alias Mac OS X v.10.3 +

View

CreateDesktopFolderAlias.command (Plaintext - 4KB)
Download CreateDesktopFolderAlias.dmg (Disk Image - 12KB)

This software will create a symbolic link from the invisible "Desktop Folder" on a computer's hard drive to the user's Desktop in Mac OS X. The desktop link will be named "Desktop (Mac OS 9)".


FontCleanup
Mac OS X v.10.3 - 10.5.x

View

FontCleanup.command (Plaintext - 4KB)
10.3_LibraryFonts.txt
10.3_SystemFonts.txt
10.4_LibraryFonts.txt
10.4_SystemFonts.txt
10.5_LibraryFonts.txt
10.5_SystemFonts.txt

Download FontCleanup.dmg (Disk image - 12KB)

FontCleanup reverts the set of fonts for the System, Library, and current user. All third-party fonts (those not on Apple's list of default fonts for the current system) will be moved into a "Fonts.old" folder at the same level that the fonts were originally installed.

The default list of fonts should be in files next to this script and should be named 10.X_SystemFonts.txt and 10.X_LibraryFonts.txt, where X is the minor version of the system - otherwise, the paths for each list should be changed inside of the script

Default fonts lists located here:

10.3: http://docs.info.apple.com/article.html?artnum=25710
10.4: http://docs.info.apple.com/article.html?artnum=301332
10.5: http://docs.info.apple.com/article.html?artnum=307069


Remove user
Mac OS X v.10.3 & v.10.4

View

remove_user.command (Plaintext - 4KB)
Download remove_user.dmg (Disk image - 12KB)

This script will remove the current user (the user who runs the script), thier home directory, and the ".AppleSetupDone" file (not necessarily in that order). This is useful for getting comptuers that were setup back to a restored condition (booting to the setup assistant). The script requires that an administrator account be used.

The "remove_user" script has tested successful on Mac O.S. X versions 10.3.5 and later. Earlier versions of Mac O.S. X behave differently with this script's execution. Particularly, on Mac O.S. 10.2.x, the script will not restart the computer automatically after execution, and the user must choose "Restart" from the "Apple" menu after the script reports failure on restarting. This happens after removing the current user's account record and trying to execute the final restart command. So far, later versions of 10.3 behave correctly.

Regardless, there are no warranties implied or otherwise as to this software's use, misuse, abuse, or and damage resulting from, or due to the use of this software. The developers hold no responsibility for any loss of data. The user (you) of this script should be well aware that they are using this software AT THIER (YOUR) OWN RISK.


OpenDirectory Backup
Mac OS X Server v.10.5.x

View

ODBackup.bash (Plaintext - 4KB)
Download ODBackup.dmg (Disk image - 12KB)

This script attempts to duplicate the functionality of the OpenDirectory service's "Archive" function in Server Admin.

Users can specify the output path of the resulting image, a passphrase to use when securing/encrypting the image, and verbose logging. It is also possible for this script to generate a random password using uuidgen, notifying the administrator of backup completion, and providing the random passphrase necessary to access the image.




All material copyright Kelley Computing 2001 - 2007. All rights reserved.
Apple, Macintosh, and Mac OS X are registered trademarks of Apple Computer, Inc.