Hi, this is Gary from MacMost Now. On today's episode let's use automator to sort files into folders. So one of the things you can do with automator is to create a folder action. That's an action that occurs when a new file is added to a folder. So, for instance, you can set it to sort files when you put, say, an image into a folder it does something with it, when you put a sound file into a folder it does something else with it. Let's go and take a look at a simple example. Let's create a new folder on the desktop, and we'll call it sorter. And then inside it, we'll create some other folders. Let's call one images. Let's call another one sound. Let's call another one other. Now the idea is that we drop something into this sort of folder, it will then place it in the proper sub folder, depending on what file type it is. So we're going to do this with automator and we're going to do it without using any apple scripting just automator functions. So what we're going to do is create a folder action in automator and choose it. Now, the next thing we need to do is choose the folder that it's going to act on. So we're going to go to the desktop and choose our sorter folder. So first we're going to narrow it down to just files and folders. And then we're going to look in here and find the filter finder items. The input here is the file and folders that are added to the sorter folders so we have it narrowed down that far. Now we just want to go and set it to ones where the kind is an image. Next thing I want to do is then move finder items, so we drag that over here so see the results of this flow into this one. And we're going to move it to select other. And we'll select this images folder. There, so it's going to take whatever is put into the sorter folder. Filter it by kind of image and then move those to the images folder. So now we're going to save this and give it a name. So we're going to do, say sorter images and save that. Now it's already assigned to that folder, so we'll just hide automator and we will drag and drop this image I have here into the sorter folder. We do that and then we give it a second, see it disappears. If we look in images we can see we put it inside that images folder. So now we want it to sort by the other criteria as well. So we're going to switch back to automator and we're going to create a new thing, we're going to do a new folder action. And we're basically going to repeat these steps and create one for audio files. We can get a sample file like this mp3 here, drop that into sorter, and we can see it will disappear into sound folder. So and last we want to create another folder action and this is going to handle all the other files. So we will choose the sorter folder as before but this time we're just going to say move finder items. You don't need to filter you just need to deal with everything else. So here's a document, we're just going to drag that into here. And that should disappear into the other folder. So to see what folder actions are applied to a folder, you select the folder. Control or right click it and go to folder actions set up. Then it's going to want you to add a new folder action to it. Instead of doing that we're just going to do cancel to see what folder actions are there. All the folders have folder actions on the left and on the right with this one selected you can see which folder actions have been applied and you can turn them on or off. You can also select one here and click edit workflow. That's a quick way to be able to go and edit a file action without having to find the file on your drive. Now order is important here you want to make sure it does images, audio and then other last. So if you want to change the order then you remove the item there from the workflow and then you can add one back in so you can add audio back in there. You can see I added it last. By the way, if you ever want to see where these files are kept then you need to go to your user folder library and then under library you go down to workflow. And there you'll find applications, folder actions, and there are the three workflows that we created. So while we've created a special folder called sorter for this, you can actually use an existing folder. For instance your downloads folder say have subfolders for pdf, images, music, all sorts of things. And then use criteria more than just kind. You can use file name checks you can use extension checks. You can do all sorts of rules to actually filter anything that gets thrown into your download folder into subfolders. It's a way to keep things neat. So there's a way to use automator to add folder actions to folders. Hope you found this useful, till next time this is Gary with MacMost Now.