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 osascript -l JavaScript | |
const App = Application.currentApplication(); | |
App.includeStandardAdditions = true; | |
function run(_) { | |
const finderPrefs = $.NSMutableDictionary.dictionaryWithContentsOfFile( | |
`${$.NSHomeDirectory().js}/Library/Preferences/com.apple.finder.plist`, | |
); |
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
(* | |
This script is for anyone who still has the classic Mac OS era habit of using | |
Command-N to create a new folder in the Finder. It's intended for use with | |
Red Sweater Software's excellent FastScripts utility -- a replacement for the | |
system's build-in Scripts menu that allows for assigning keyboard shortcuts | |
to scripts, on a per-application basis. | |
FastScripts: https://red-sweater.com/fastscripts/ | |
Install the script here: ~/Library/Scripts/Applications/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/perl | |
# This filter changes all words to Title Caps, and attempts to be clever | |
# about *un*capitalizing small words like a/an/the in the input. | |
# | |
# The list of "small words" which are not capped comes from | |
# the New York Times Manual of Style, plus 'vs' and 'v'. | |
# | |
# 10 May 2008 | |
# Original version by John Gruber: |