This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Shell scripts on right mouse


> -----Original Message-----
> From: Bodsch, Norbert [mailto:Norbert.Bodsch@volkswagen.de]
> Sent: Thursday, October 14, 1999 4:51 PM
> To: 'cygwin@sourceware.cygnus.com'
> Subject: Shell scripts on right mouse
> 
> 
> > Hello,
> > does anyone know how to run a shell script on a selected 
> file on the right
> > mouse button, e.g.:
> > For a postscript file "file.ps" selected in NT explorer I 
> want to gzip it.
> > So making a new command for gzipping a ps-file in the 
> registry works (gzip
> > "%1"), but the new file has the name "file.ps.gz", which 
> has to be renamed
> > to "file.gz.ps" for it can be automatically opened with 
> Ghostview. What I
> > want is a command like this:
> > 
> > #! bash
> > # gzip-ps.sh
> > B=`basename $1 .ps`
> > gzip $1
> > mv $1.gz $B.gz.ps
> > 
> > Has anyone done such a thing?
> > 

Placing a command like '"path to bash.exe" "path to gzip-ps.sh" "%1"' for
action "gzip" of file type "PS file" should do the trick, or do I
misunderstand something?

HTH

		Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingéniérie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]