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

Jelle de Jong jelledejong at powercraft.nl
Tue Jul 7 18:48:43 CEST 2009


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.

Best regards,

Jelle



More information about the Thunar-dev mailing list