Re: How to drag and drop on a script?



Le mardi 14 d�mbre 2004 �0:08 +0100, Erik Terpstra a �it :
> This is probably a stupid question. Is it possible to drag and drop a 
> file on an icon representing an executable bash script which takes the 
> first argument as the file to process?
> 

Hi !

This is easy:

in your script, use $1 to retrieve the first argument, and in your
lancher, use the following command:

/path/to/your/script.sh %f

At least, that works for me.

-- 
Julien Olivier <julo altern org>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]