[Thunar-dev] Stripping file extension in custom actions

Xavier Dectot xavier.dectot at culture.gouv.fr
Fri Mar 10 09:23:37 CET 2006


Le Thu, 9 Mar 2006 16:57:36 +0100,
Glide <glide at ifrance.com> a écrit :

> It's not about Thunar but here is a solution using bash. Create an
> executable script called convertpng.sh with
> 
> #!/bin/bash
> for file in $*
> do
>   convert [your options here] "$file" "${file%.*}.png"
> done
> 
> Then create a custom action calling that script with:
> /path/to/convertpng.sh %F
> 
> It works with multiples files.
> 
> Bonne journée :)

Just the kind of script I had in mind.

Merci beaucoup :)



More information about the Thunar-dev mailing list