Re: How to drag and drop on a script?
- From: Julien Olivier <julo altern org>
- To: Erik Terpstra <erik terpnet nl>
- Cc: nautilus-list gnome org
- Subject: Re: How to drag and drop on a script?
- Date: Tue, 14 Dec 2004 09:26:26 +0100
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]