Skip to content

nicolodiamante/norflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

norflow

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 and can become a nuisance. 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:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/nicolodiamante/norflow/HEAD/bootstrap.sh)"

Manual Cloning: For those who prefer a hands-on approach, you can manually clone the repository to your desired location:

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:

source install.sh

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

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.

Nicolò Diamante

MIT License