LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Unable to drag and drop onto bash script in gnome (http://www.linuxquestions.org/questions/linux-software-2/unable-to-drag-and-drop-onto-bash-script-in-gnome-622626/)

dlublink 02-20-2008 09:19 PM

Unable to drag and drop onto bash script in gnome
 
Hello,

I am running ubuntu 7.10 and I made a bash script that takes a filename as a parameter ( $1 ). I want to drag and drop folders onto the script ( like I can do in Windows w/ bat files ).

How can I do this in gnome?

Thanks,

David

Drakeo 02-20-2008 10:26 PM

open it as a text file cut and paste good luck my frind it is all white paper write on it.

dlublink 02-25-2008 09:41 AM

That's not what I meant. I wanted the script to execute with the dragged folder as the first parameter. Instead I moved the script to ~/.gnome2/nautilus-scripts and used right click, script and the name.


All times are GMT -5. The time now is 11:49 AM.