Skip to content

Instantly share code, notes, and snippets.

@SoraAzure
SoraAzure / airdropSorter.scpt
Last active Nov 28, 2019 — forked from menushka/airdropSorter.scpt
Avoid overwriting files with the same name in the target folder by appending a number suffix.
View airdropSorter.scpt
property destinationFolder : "Path:to:AirDrop:Folder:in:Alias:format" -- Please change this
property quarantineTypes : { "59" }
on run {input, parameters}
tell application "Finder"
set filesToMove to {}
repeat with iInput from 1 to count input
set filePath to item iInput of input
set shouldProcess to false
if (count quarantineTypes) > 0 then