Skip to content

Instantly share code, notes, and snippets.

@darwin

darwin/readme.md Secret

Last active November 13, 2017 19:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darwin/f2f5305fbfafb9c28975e51908aa9900 to your computer and use it in GitHub Desktop.
Save darwin/f2f5305fbfafb9c28975e51908aa9900 to your computer and use it in GitHub Desktop.
TotalFinder SIP diagnostics

This is a simple shell script which will hopefully diagnose your situation.

  1. open /Applications/Utilities/Terminal.app
  2. execute:
curl -sL https://gist.github.com/darwin/f2f5305fbfafb9c28975e51908aa9900/raw/totalfinder-diagnostics.sh | bash
  1. copy&paste the output and send it back to me (support@binaryage.com)
#!/usr/bin/env bash
set -e -o pipefail
LIBRARY_OSAX=/Library/ScriptingAdditions/TotalFinder.osax
SYSTEM_OSAX=/System/Library/ScriptingAdditions/TotalFinder.osax
SIP_OSAX=/System/Library/ScriptingAdditions/TotalFinderSIP.osax
TF_APP=/Applications/TotalFinder.app
# - helpers -------------------------------------------------------------------------------------------------------------
read_osax_info_key() {
local info_plist_path="$1/Contents/Info"
set +e
defaults read "$info_plist_path" "$2" 2> /dev/null
set -e
}
check_bundle() {
local osax_path="$1"
if [[ ! -d "$osax_path" ]]; then
echo "$osax_path not present"
else
BUNDLE_IDENTIFIER=$(read_osax_info_key ${osax_path} CFBundleIdentifier)
BUNDLE_VERSION=$(read_osax_info_key ${osax_path} CFBundleVersion)
OSAX_REVISION=$(read_osax_info_key ${osax_path} OSAXRevision)
echo "$osax_path $BUNDLE_IDENTIFIER $BUNDLE_VERSION $OSAX_REVISION"
fi
}
# - entry point ---------------------------------------------------------------------------------------------------------
sw_vers
echo
set +e
csrutil status
set -e
echo
echo "> ls -l /System/Library/ScriptingAdditions"
ls -l /System/Library/ScriptingAdditions
echo "> ls -l /Library/ScriptingAdditions"
ls -l /Library/ScriptingAdditions
echo "> ls -l ~/Library/ScriptingAdditions"
set +e
ls -l ~/Library/ScriptingAdditions
set -e
echo
check_bundle "$LIBRARY_OSAX"
check_bundle "$SYSTEM_OSAX"
check_bundle "$SIP_OSAX"
check_bundle "$TF_APP"
@colintclai
Copy link

I have the same problem and I've sent you the Terminal output to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment