One option is to create a batch file that handles part of the drag and drop. As you can see here , when dragging files into a batch file, the list of deleted files will be stored in %*the form of a list separated by spaces. The batch file that just said ruby yourscript.rb %*should take this list of files and pass it to your script (where you can access the arguments with an array ARGS).
source
share