{"connections":[{"sourceLocalID":4,"sourcePortID":"outlet_yes","targetLocalID":11,"targetPortID":"inlet_input"},{"sourceLocalID":0,"sourcePortID":"outlet_yes","targetLocalID":5,"targetPortID":"inlet_input"},{"sourceLocalID":0,"sourcePortID":"outlet_no","targetLocalID":6,"targetPortID":"inlet_input"},{"sourceLocalID":6,"sourcePortID":"outlet_yes","targetLocalID":7,"targetPortID":"inlet_input"},{"sourceLocalID":4,"sourcePortID":"outlet_no","targetLocalID":8,"targetPortID":"inlet_input"},{"sourceLocalID":6,"sourcePortID":"outlet_no","targetLocalID":4,"targetPortID":"inlet_input"},{"sourceLocalID":10,"sourcePortID":"outlet_output","targetLocalID":0,"targetPortID":"inlet_input"},{"sourceLocalID":8,"sourcePortID":"outlet_yes","targetLocalID":1,"targetPortID":"inlet_input"}],"hideGrid":false,"name":"Sort Downloads by Type","nodes":[{"config":{"caseInsensitive":true,"logic":"and","rules":[{"field":"fileExtension","negate":false,"operator":"matches_regex","value":"^(dmg|pkg)$"}]},"customName":"Is It an Installer?","isDisabled":false,"localID":0,"typeID":"condition.compare","x":360,"y":200},{"config":{"allowFolders":false,"createDirectories":true,"destination":"{{directory}}/Archives/{{fileName}}","mode":"move","overwrite":false},"customName":"Move to Archives","isDisabled":false,"localID":1,"typeID":"action.move_file","x":1400,"y":360},{"config":{"_height":500,"_width":460,"text":"**Sorts each new file in Downloads into a folder for its kind, once the download has finished.**\n\n**What it does**\n- Keeps Downloads tidy without you dragging files around.\n- Moves PDFs, images, archives and installers (.dmg and .pkg) into PDFs, Images, Archives and Installers folders inside Downloads.\n- Leaves every other file where it is.\n- Never replaces a file. A name clash gets a number added.\n\n**Set it up**\n- On Watch Downloads, click Directory and choose your Downloads folder.\n- If macOS asks to let Watchflows use your Downloads folder, choose Allow.\n- Only files that arrive after this are sorted.\n\n**Make it yours**\n- Rename a folder in the Destination of Move to PDFs, Move to Images, Move to Archives or Move to Installers.\n- Add an extension to the rule on Is It an Installer?, for example `|iso`."},"isDisabled":false,"localID":2,"typeID":"note","x":100,"y":-330},{"config":{"_height":200,"_width":230,"text":"Watch Subdirectories is off. That stops the flow from sorting files it already moved into a subfolder. Partial downloads such as .crdownload, .download or .part match no rule, so a file moves only once it has its final name."},"isDisabled":false,"localID":3,"typeID":"note","x":100,"y":360},{"config":{"caseInsensitive":true,"logic":"and","rules":[{"field":"fileType","negate":false,"operator":"equals","value":"Images"}]},"customName":"Is It an Image?","isDisabled":false,"localID":4,"typeID":"condition.compare","x":880,"y":200},{"config":{"allowFolders":false,"createDirectories":true,"destination":"{{directory}}/Installers/{{fileName}}","mode":"move","overwrite":false},"customName":"Move to Installers","isDisabled":false,"localID":5,"typeID":"action.move_file","x":620,"y":360},{"config":{"caseInsensitive":true,"logic":"and","rules":[{"field":"fileExtension","negate":false,"operator":"equals","value":"pdf"}]},"customName":"Is It a PDF?","isDisabled":false,"localID":6,"typeID":"condition.compare","x":620,"y":200},{"config":{"allowFolders":false,"createDirectories":true,"destination":"{{directory}}/PDFs/{{fileName}}","mode":"move","overwrite":false},"customName":"Move to PDFs","isDisabled":false,"localID":7,"typeID":"action.move_file","x":880,"y":360},{"config":{"caseInsensitive":true,"logic":"and","rules":[{"field":"fileType","negate":false,"operator":"equals","value":"Archives"}]},"customName":"Is It an Archive?","isDisabled":false,"localID":8,"typeID":"condition.compare","x":1140,"y":200},{"config":{"_height":140,"_width":220,"text":"Images means jpg, jpeg, png, gif, heic, heif, webp, tiff, bmp and svg. Archives means zip, tar, gz, tgz, rar and 7z."},"isDisabled":false,"localID":9,"typeID":"note","x":880,"y":40},{"config":{"eventTypes":"created","recursive":false,"waitForCloudDownload":true,"watchPath":"{{NEEDS_INPUT: choose the folder to watch, such as your Downloads folder}}"},"customName":"Watch Downloads","isDisabled":false,"localID":10,"typeID":"trigger.directory_changed","x":100,"y":200},{"config":{"allowFolders":false,"createDirectories":true,"destination":"{{directory}}/Images/{{fileName}}","mode":"move","overwrite":false},"customName":"Move to Images","isDisabled":false,"localID":11,"typeID":"action.move_file","x":1140,"y":360}],"version":1}