Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 1 month ago
JSON representation

Say goodbye to the Shortcuts folder with this launchd agent.

Awesome Lists containing this project

README

        




norflow

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




Apple Shortcuts

## 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].




>



Nicolò Diamante Portfolio




MIT License

[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