Skip to content

Instantly share code, notes, and snippets.

@khurshid-alam
Created August 2, 2024 12:29
Show Gist options
  • Save khurshid-alam/6358f46b3082008e86887d2836538008 to your computer and use it in GitHub Desktop.
Save khurshid-alam/6358f46b3082008e86887d2836538008 to your computer and use it in GitHub Desktop.
# This needs to be put in "Run terminal command (async)" section of Finder context menu configuration in BetterTouchTool # See full tutorial here:
#!/bin/bash
# This needs to be put in "Run terminal command (async)" section of Finder context menu configuration in BetterTouchTool
# See full tutorial here:
filePath="{BTTFinderContextMenuTargetPath}/untitled";fileNo=1;while [ -f "${filePath}" ];do filePath="{BTTFinderContextMenuTargetPath}/untitled${fileNo}";fileNo=$((fileNo+1));done;touch "${filePath}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment