Skip to content

Instantly share code, notes, and snippets.

Last active May 9, 2017 21:44
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Script Runner. This is a Launch Agent and script launcher so we can have a folder of scripts that are run anytime a user logs in. This is very barebones and not even remotely fancy, please feel free to share any feedback or suggestions you might have. Updated 2014-03-04 to support logging
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
# save this file at /Library/yourorg/
source_path=$(dirname "${script_path}")
chmod 777 "/var/log/yourorg-scriptrunner.log"
if [ -d "${source_path}/User Login Scripts" ]; then
cd "${source_path}/User Login Scripts"
for item in *; do
echo "### $(date) BEGIN ${item}"
echo "### $(date) END ${item}"
chmod 777 "/var/log/yourorg-scriptrunner.log"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment