Simple startup routines to inclide into apples mac os shortcuts app.
- Open "Shortcuts"-App
- Add new shortcut
- Select "Scripting" filter category on the right
- Select "Run JavaScript for Mac automation"
- Paste your js code into the editor
- Close the editor window
- Test shortcut by triggering spotlight and typing in the name of your shortcut.