Process Selected Items Panel

You can use this panel to run a program on the selected files in the Work with scan results table.

Run program

To choose a program to process the selected files, enter the path to the program into this field, or use the button to browse for a program. You can specify an application (ending in .app), or any executable as the program to run.

Note that if an application is specified, it will be run using the command-line open utility (i.e. /usr/bin/open -a <application> <arguments>).

To run a shell script, specify /bin/sh as the program and provide the full path to your script as the first argument in the Arguments field. Note that, due to sandboxing restrictions, the script must be located either under one of the folders being scanned or in ~/Library/Containers/com.araxis.findduplicatefiles/Data.


The program you have chosen in the field above may require certain arguments to control how it behaves. Edit the contents of this field to specify any required program arguments. Use $1 to mark the location at which the file or files being processed should be inserted into the program’s list of arguments. There is an example at the end of this help topic.

Argument options

When running the program to process the selected files, you may want the program to be run for each file in turn, or to be run once to process all the files in one go. Choose the strategy you prefer from the drop-down list. Most programs work best when processing one file at a time, and a more detailed indication of progress can be shown in this situation.


Click this button to run the program that you have configured above. If the Run button is disabled, then the Run Program and/or Arguments fields haven’t been filled out correctly. A coloured indicator to the right of each field indicates whether the contents of the field looks reasonable. In particular, don’t forget to include the $1 placeholder somewhere in the Arguments field.

Find Duplicate Files displays a progress window while the program runs, enabling you to cancel processing of remaining items at any time. If problems occur during processing, they are reported. You can view additional details in the <dx:guiItem>Console application.

Example: secure deletion of selected files

You can perform secure deletion using the /usr/bin/srm program as follows:

  • Enter /usr/bin/srm into the Run program field
  • Enter -f $1 into the Arguments field
  • Select Run with one file at a time
  • Click the Run button

Note that secure deletion cannot be undone unless you have access to a backup of the affected files.