Code Monkey home page Code Monkey logo

finder-new-file's Introduction

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.

finder-new-file's People

Contributors

bensouchet avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.