Skip to content

Instantly share code, notes, and snippets.

@SoraAzure
SoraAzure / airdropSorter.scpt
Last active March 12, 2023 12:21 — forked from menushka/airdropSorter.scpt
Avoid overwriting files with the same name in the target folder by appending a number suffix.
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