Newfilemenu16dmg | Portable
Go to System Settings > Extensions > Finder Extensions and check the box for New File Menu .
import Cocoa func openGeneratedFile(at url: URL) // Only proceed if the user enabled "Auto-Open" in settings if UserDefaults.standard.bool(forKey: "AutoOpenEnabled") NSWorkspace.shared.open(url) Use code with caution. Copied to clipboard newfilemenu16dmg
Because it is a Finder extension, you must enable it in "System Preferences > Extensions" for it to function. Go to System Settings > Extensions > Finder
This utility allows you to right-click anywhere in (including the desktop) and select "New File" to instantly create documents like .txt , .docx , or .py . Helpful Tips & Setup newfilemenu16dmg