

If automatic deletion is no longer necessary, right-click the folder from which you want to delete the information, and then select Services, then -> Folder Actions Settings. Click on ⌘Cmd+S and select an appropriate name for the action.ĭone! The removal process will begin immediately. Drag and drop this into the gray box on the right (you will see a notification there).ģ. So low Actions select Files and folders Among the options that have emerged are Move Finder objects to the Recycle Bin. " click on Others and select the desired folder. To do this, to the right of « The folder action receives the files and folders added to. In the window that appears, select Actions folder.Ģ.Then select the folder to which the action will be applied. Open Automation ( Launchpad -> Others -> Automation) and press New document.

How to automatically delete files from a folder on MacĬonfiguration Automation in this case the following.ġ. Here's how to avoid it with the help of tools built into OS X. But, of course, we tend to forget and, over time, we end up having a real "traffic jam". iTunes on OSX has a folder called Previous mobile applications where old versions of apps tend to clutter your computer, so it's a good idea to delete them periodically. The reader may wonder why such a script is needed.

One of the many features of Automator is the automatic deletion of files from a folder. Additionally, be warned that if you have files with duplicate names, the duplicate files will be deleted.Build in OS X SCHEDULE Automation - A godsend for those who want to automate routine tasks on their Mac. Note that the workflow functions properly only if you drag one folder to the applet at a time. The workflow then goes on to delete the empty Folders B, C, and D. So, for example, if you drag Folder A-which contains Folders B, C, and D-to the workflow, the files within those folders (and the contents of the folders within these folders) will move to Folder A. When you drag a folder on to this workflow applet, all items buried in folders within that folder will be placed at the root level of the folder you dragged. Name your workflow something like “Subfolder Zapper” and save it to the Desktop. And finally, leave the Move Finder Items to Trash action alone. Configure the next Filter Finder Items action to read Kind is Folder. Leave the next Get Folder Contents action as it is-without the Repeat for Each Subfolder Found option checked. Enable the Replacing Existing Files option in this action.

In the next action-Move Finder Items-drag the hostFolder variable from the variables list at bottom of the workflow to the To pop-up menu so that its name appears in the pop-up menu. Configure the following Filter Finder Items action to read Kind Is Not Folder. In the second action-Get Folder Contents-enable the Repeat For Each Subfolder Found option.
