Trash, App Cleanup and Syncing
THE EASIEST WAY TO CREATE THESE DEFAULT RULES IS FROM THE RULESET Load Predefined Rules
ACTION MENU [
].
Trash
AutoFiler gives you a number of rules to allow you to automatically manage your trash. When AutoFiler is first installed it automatically includes some suggested Trash cleanup rules. All you have to do is enable them. We will now go through the procedure to create these rules from scratch.
To Create Trash Rules:
- In the AutoFiler window, click the plus (+) button under the RuleSet table to add a new Rule Set. Give the Rule Set a name like for example "Trash".
- Mac OS-X actually has multiple Trash folders. One in your home directoy (~/.Trash) and one on each secondary file system. (/Volumes/[your disk]/.Trashes/[your user id]). There is a special smart option you can choose to give all Trash folders the same rules. From the action menu [
] under Folders select Add Smart Folders->All My Trash Folders - You can also add individual trash folders by clicking on the plus ["+"] and selecting individual folders. Tip: The OS-X file selection dialog doesn't normally show files that begin with dot ["."] like .Trash. If you type slash ["/"] in the file selection dialog, you will be able to manually enter the name of a hidden folder like ".Trash". Snow Leopard Tip: You can press Shift-Command-. (period), and you will be able to see hidden files.
- You may want to have the first rule to immediately remove extra large files. This allows smaller files to stay in the trash longer. Also, if you use the Purge Oldest action without a remove large file rule, then putting a file in your trash larger than your Purge rule would completely empty your trash. Click plus ["+"] to add a new rule. Name it "Delete Large". Add a condition of size is greater than 1 gigabyte. Add an action of remove file permanently.
- Add another rule to remove the oldest files from your trash. Click plus ["+"] to add a new rule. Name the rule "Purge Oldest". Check the box "Apply Rule to Folder". Add an action to purge oldest permanently keeping the size below 2 gigabytes.
- Instead of the above rules, or perhaps in addition to them, you could have a rule to delete files that have been in the trash a certain period of time. Click plus ["+"] to add a new rule. Name it "Delete Old". Add the condition that added to directory date is not in the last week. Add an action of remove file permanently.
App cleanup
AutoFiler can remove configuration files related to deleted applications. When you remove an application, AutoFiler can prompt you to remove its configuration files. It will also prompt you to restore them from the Trash if the application reappears.
To Create App Cleanup Rules:
- In the AutoFiler window, click the plus (+) button under the RuleSet table to add a new Rule Set. Give the Rule Set a name like for example "App Cleanup".
- Add the Application folders you wish to monitor. You can select specific folders to monitor (which for most people will be just /Applications). Or alternatively there is a special smart option you can choose to monitor all the standard Application folders (On most systems /Applications, ~/Applications and /Network/Applications). From the action menu [
] under Folders select Add Smart Folders->Standard Application Folders. There is also an option All Application Folders which is all the folders on your system where applications reside. - Add a rule to monitor the directory. Click plus ["+"] to add a new rule. Name it "App Cleanup". Check the box Apply Rule to Folder. Add the action app clean-up. Check the box Always recheck rules
- Many applications install in subdirectories under /Applications. So we want run the rules on subfolders. Click plus ["+"] to add a new rule. Name it "Apply to Subfolders". Check the box Apply Rule to Folder. Add the action on subfolder contents run rules current rule set. Check the box Always recheck rules.
Sync folders
AutoFiler has a sync rule which can keep two folders in sync. Syncing is intelligent enough to remember the previous state of files, so that it knows what has changed.
To Create Sync Rules:
- In the AutoFiler window, click the plus (+) button under the RuleSet table to add a new Rule Set.
- Add to the list of folders, the folders you wish to activate syncing. For one-way syncing, add the source folder. For two-way syncing, add the source and destination folders.
- Add a new rule. Check Apply Rule to Folder and Always Recheck Rules. Select sync as the action, and select source and destination folders. Click on Options to select two way syncing.
If you select Prompt User to resolve conflicts, and if the syncing is two-way, then a window will pop up to allow the user to resolve conflicts. A conflict occurs when both source and destination files change between syncs. Because AutoFiler is active in keeping things continually in sync, this shouldn't happen very often.
You can add patterns to the Disable deleting files list. If the pattern contains a slash "/" character, the pattern is matched against the path, otherwise it is matched against the name only. The path in this case is only the part of the path relative the top level synced folder. Asterisk "*" matches any characters, and question-mark "?" matches one character. Matching rules are the same as UNIX shell.