Skip to content

BenSouchet/finder-new-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Finder New File

cover_finder_new_file

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. 💫

Installation

  1. 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
  1. Go in the folder /apps, open the sub-folder according to your macOS apparence (dark or light), if you use the auto apparence, select auto_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.
  2. 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 folder addons in your user directory (cd ~) and put the app inside:

  1. Inside this folder, on your keyboard hold the keys  command + option  and drag the application (finder_new_file.app) into the finder toolbar:

  1. Go to your Documents, to do a first try of the app:

  1. The first time you will have a lot of Permission requests, Allow these permissions:

  1. Last Step, go to System Preferences > Security & Privacy > Accessibility and allow Script Editor.app and FinderNewFile.app.

Errors / Bugs

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.

Know Issues

Screenshot Title Resolution
ErrorKeystrokes finderNewFile is not allowed to send keystrokes. (1002) You need to verify that on System Preferences > Security & Privacy > Accessibility both Script Editor.app and FinderNewFile.app are on the list, if not add them with the little + button. (You first need to unlock the panel by clicking on the padlock icon on the bottom left).

If you had another error (or bug), please open an issue.

Source Code

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.

Others Ressouces & Useful links

Author & maintainer

CW Wizard has been created and is currently maintained by Ben Souchet.

The code present in this repository is under MIT license.