Add a button to your Mac OS finder to create an empty .txt
file in the current folder. 📂
- No Additional software or library required, it's native AppleScript code ⌨️
- Open Source project, you can check the code, copy it, edit it, it's under MIT License. 💫
- First download the project archive via this link and unzip the archive.
Or retrieve it via git clone:
> git clone https://github.com/BenSouchet/finder-new-file.git
Cloning into 'finder-new-file'...
> cd finder-new-file
- Go in the folder
/apps
, open the sub-folder according to your macOS apparence (dark or light), if you use theauto
apparence, selectauto_theme
. Info: There is three apps (one in each folder) because the icon need to fit the Mac OS theme. The source code of these apps are identical. - Move the file
finderNewFile.app
in a folder where the app don't risk to be move or delete in the future.
I recommend creating a folderaddons
in your user directory (cd ~
) and put the app inside:
- Inside this folder, on your keyboard hold the keys command + option and drag the application (
finder_new_file.app
) into the finder toolbar:
- Go to your Documents, to do a first try of the app:
- The first time you will have a lot of Permission requests,
Allow
these permissions:
- Last Step, go to
System Preferences
>Security & Privacy
>Accessibility
and allowScript Editor.app
andFinderNewFile.app
.
This project has been developed on macOS Monterey v12.2.1, normally the code work well on older versions but I can't guarantee that it works on newer versions.
If you had another error (or bug), please open an issue.
To check and edit the source code open finder_new_file.app
with the app Script Editor
.
Script Editor
is a native Mac OS app available by default in your mac.
You can also find the source code in the file source.scpt
here in the assets folder.
- AppleScript to create a new file in Finder
- How to create a text file in a folder
- PNG to ICNS (used to create the apps icons)
CW Wizard has been created and is currently maintained by Ben Souchet.
The code present in this repository is under MIT license.