[Thunar-dev] How to apply actions to multiple files

Tino Keitel tino.keitel+xfce at tikei.de
Tue Jul 7 21:27:35 CEST 2009


On Tue, Jul 07, 2009 at 18:48:43 +0200, Jelle de Jong wrote:
> Tino Keitel wrote:
> > On Tue, Jul 07, 2009 at 10:25:12 +0200, Jelle de Jong wrote:
> >> Tino Keitel wrote:
> >>> Hi folks,
> >>>
> >>> I'd like to know how to apply a custom action to multiple selected
> >>> files. In this case, I have photos from my camera, which need to be
> >>> rotated manually if taken in portrait orientation (no builtin sensor).
> >>> I tried the custom actions, but they don't seem to work if more than
> >>> one file is selected. Is there a different way to do this?
> >>>
> >>> Regards,
> >>> Tino
> >> Hi Tino,
> >>
> >> You can use something like this in the custom action config:
> >>
> >> #Name:          Convert Image
> >> #Description:   Create special new image(s)
> >> #Command:       x-terminal-emulator -e
> >> /usr/share/pct-thunar-scripts/scripts/convert-image %F
> >> #Patterns:      *
> >> #Image Files:   True
> > 
> > As I wrote above, I already tried to add a custom action, which looked
> > pretty much like the one you suggested (unless I miss the point). But
> > it's useless, as it is not present in the context menu if I select more
> > than one file. Or am I doing something wrong?
> 
> remove the current custom action
> 
> thunar -q to kill current thunar
> 
> add custom action make use to use * as patterns en true for image file check
> 
> thunar -q to kill the current thunar and restart and test the custom action.

I repeated this (actually, it was the same I tried before, without the
thunar -q calls), but got the same result. The custom action is visible
when 1 file is selected, but not visible if 2 files are selected, so it
is useless for my task. At least I don't see the entry in the context
menu.

Regards,
Tino



More information about the Thunar-dev mailing list