Some applications, especially editors and IDEs, allow you to add custom commands that will run an external application with the current document (or selection, folder, etc) as an argument. Also, file managers like Nautilus allow you to run arbitrary scripts against currently selected files.


