Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nicolodiamante/norflow
Say goodbye to the Shortcuts folder with this launchd agent.
https://github.com/nicolodiamante/norflow
agent empty-check empty-folder finder icloud icloud-document-storage icloud-drive ios launch macos os shortcuts shortcuts-app shortcuts-folder
Last synced: 3 months ago
JSON representation
Say goodbye to the Shortcuts folder with this launchd agent.
- Host: GitHub
- URL: https://github.com/nicolodiamante/norflow
- Owner: nicolodiamante
- License: other
- Created: 2022-12-12T13:31:18.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-06T18:29:34.000Z (3 months ago)
- Last Synced: 2024-08-06T22:11:59.500Z (3 months ago)
- Topics: agent, empty-check, empty-folder, finder, icloud, icloud-document-storage, icloud-drive, ios, launch, macos, os, shortcuts, shortcuts-app, shortcuts-folder
- Language: Shell
- Homepage:
- Size: 28.3 KB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- jimsghstars - nicolodiamante/norflow - Say goodbye to the Shortcuts folder with this launchd agent. (Shell)
README
[Apple Shortcuts][apple-shortcuts] is indeed a powerful tool that enables users to simplify their daily tasks and complete them with ease. With just a tap or a voice command, you can perform a wide range of actions, such as sending messages, setting reminders, or playing your favourite music. Additionally, the Shortcuts app allows you to create personalised shortcuts with multiple steps, which can save you significant time and effort.
However, the app creates an empty folder on your iCloud Drive every time it's opened. While it's possible to store files in this folder, it's often left empty. Although deleting the folder manually is harmless, it can be time-consuming and bothersome. This is where a simple utility comes in handy. This utility helps by automatically removing this redundant folder if it's empty, ensuring your iCloud Drive remains clutter-free.
## Getting Started
Here are the two methods you can choose from:
**Automatic Download via `curl`**: Simply execute the following command in your terminal to quickly download and seamlessly install the utility:
```shell
zsh -c "$(curl -fsSL https://raw.githubusercontent.com/nicolodiamante/norflow/HEAD/bootstrap.zsh)"
```**Manual Cloning**: For those who prefer a hands-on approach, you can manually clone the repository to your desired location:
```shell
git clone https://github.com/nicolodiamante/norflow.git ~/norflow
```
### Post-Download Steps
**Directory Navigation & Script Execution**: Navigate to the repository's `utils` directory and execute the installation script:
```shell
source utils/install.zsh
```**Norflow Configuration**: Running the script will efficiently copy the agent files to `~/Library/LaunchAgents`, ensuring Norflow is seamlessly integrated into your system.
## How It Works
**Agent**: A specialised program designed to perform tasks at set intervals. In the context of this utility, the agent's primary function is to scan your iCloud Drive at regular intervals.
**Scan Frequency**: The agent initiates a scan every 300 seconds to detect the presence of the Shortcuts folder in iCloud Drive.
**Deletion Criteria**: Upon detecting the Shortcuts folder, if it's empty, the folder is deleted. This step ensures that no important data is inadvertently removed.
### Benefits
- **Automated Cleanup**: Keep the iCloud Drive clean by auto-deleting a frequently empty folder.
- **Efficiency**: Removes manual checks, keeping iCloud Drive tidy.In summary, this combination of agent and script delivers a seamless solution for maintaining an orderly iCloud Drive. By reducing unnecessary clutter, it paves the way for enhanced productivity and an improved workflow.
## Notes
### Resources
- [Shortcuts User Guide][apple-guide]
### Contribution
Any suggestions or feedback you may have for improvement are welcome. If you encounter any issues or bugs, please report them to the [issues page][issues].
>
[apple-shortcuts]: https://support.apple.com/en-gb/guide/shortcuts/welcome/ios
[apple-guide]: https://support.apple.com/en-gb/guide/shortcuts/apdf22b0444c/6.0/ios/16.0
[issues]: https://github.com/nicolodiamante/norflow/issues