I'm sure I'll get my ass handed to me for this question, but I just can't seem to figure it out. I'm new to bash scripting, so go easy on me...
I want to be able to drag and drop a file onto a desktop application, which then calls a bash script that will move that file to a location designated within the bash script. Here is what a have so far.
#! /bin/bash mv $file /path/to/new/directory
However, I can't figure out how to input the
$file as a variable when I drag and drop it onto a desktop application. How can I do this?
Reason: I have papers that I need to read in one folder, and once I've read them I put them into another folder. I basically just want to make it easy to do this.