Describe the bug
"Create New File in Current Directory" just doesn't work for me. The shortcut itself detected by BTT, because it executes other actions if I change it.
Device information:
- Type of Mac:Mac mini (Late 2012) <-- ( BTW, there is no space after the colon in the template.
- macOS version: 10.13.6 (17G4015)
- BetterTouchTool version: 2.69* - 2.702, but it worked before, but I don't know the last unaffected version.
Thanks for reporting! I must have broken the script at some point accidentally.
For now you can use this apple script:
try
tell application "Finder" to set the currentFolder ¬
to (folder of the front window) as alias
on error -- no open folder windows
set the currentFolder to path to desktop folder as alias
end try
set fileName to text returned of (display dialog ¬
"Enter name for new file:" default answer "newfile.txt")
set absolutePath to POSIX path of currentFolder & fileName
do shell script "shopt -u xpg_echo; echo '' > \"" & absolutePath & "\""
or this one in case you want rtf files:
try
tell application "Finder" to set the currentFolder ¬
to (folder of the front window) as alias
on error -- no open folder windows
set the currentFolder to path to desktop folder as alias
end try
set fileName to text returned of (display dialog ¬
"Enter name for new file:" default answer "newfile.rtf")
set absolutePath to POSIX path of currentFolder & fileName
do shell script "shopt -u xpg_echo; echo '{\\rtf1}' > \"" & absolutePath & "\""
1 Like
This should work again in v2.703 alpha
1 Like