瀏覽代碼

Initial commit

main
Rocketsoup 2 週之前
父節點
當前提交
a7306e231b
共有 3 個文件被更改,包括 20 次插入1 次删除
  1. 1
    0
      .gitignore
  2. 二進制
      NewText.scpt
  3. 19
    1
      README.md

+ 1
- 0
.gitignore 查看文件

@@ -0,0 +1 @@
1
+.DS_Store

二進制
NewText.scpt 查看文件


+ 19
- 1
README.md 查看文件

@@ -1,3 +1,21 @@
1 1
 # mac-app-newtext
2 2
 
3
-MacOS Script Editor app that will create a new empty notes.txt in your current Finder window
3
+MacOS Script Editor app that will create a new empty notes.txt in your current Finder window.
4
+
5
+## To create app
6
+
7
+These instructions are based on MacOS Sequoia (15.7). There may be small differences in Script Editor options and menus.
8
+
9
+1. Open `NewText.scpt` in the Mac system app Script Editor
10
+   - Make any edits you'd like. E.g. if you prefer a different filename than `notes.txt`, it's fairly obvious where to change that in a couple places.
11
+2. Click File > Export...
12
+3. Pick file format of Application
13
+4. Typically you'll want to export it either to `~/Applications` (for just yourself to use) or `/Applications` (for all users)
14
+5. In Code Sign, pick "Sign to Run Locally"
15
+6. Click Save
16
+
17
+## To use
18
+
19
+Whenever you are in a Finder window, if you want to create a blank `notes.txt` file, just Cmd+Space to invoke Spotlight and start typing "NewText" until it autocompletes, then hit enter to create the file. If you have multiple Finder windows open, it will be created in the topmost one. You can create one on the desktop by clicking the desktop before invoking. If you already have a `notes.txt` in that directory, a `notes 1.txt` will be created, or `notes 2.txt`, etc.
20
+
21
+The first time you run it in Documents, Downloads, network drives, and some other folders, you may be prompted to allow the script access to that folder. You need to click allow for it to work there.

Loading…
取消
儲存