This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function finder_icons --description 'Script to toggle Finder icons' | |
defaults read com.apple.finder CreateDesktop > /dev/null 2>&1 | |
set enabled $status | |
switch $argv[1] | |
case off | |
if test $enabled -eq 1 | |
osascript -e 'tell application "Finder" to quit' | |
defaults write com.apple.finder CreateDesktop false | |
open -a Finder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import base64 | |
import json | |
import os | |
import shlex | |
import subprocess | |
import sys | |