#!/bin/sh

TOOL_PATH="$HOME/Library/Application Support/Kaleidoscope/KaleidoscopeIntegration.alfredworkflow"

# Remove the workflow from application support
rm "$TOOL_PATH" || { echo "Removing '$TOOL_PATH' failed"; exit 1; }

# Show the Alfred Workflow preferences, so the user can easily uninstall the workflow
open "alfredpreferences://workflows"

exit 0
