Linux Lite Forums

Full Version: File manager - can I set it to run a command on selected files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi.

I often use LL when I manage my photo and video collection. I like to have control over the files last modified date, so if I have say converted an image into another format that new image file format would have set file modification date to the time when converted.

Therefore I manually use terminal and uses the touch command to (for the sake of example I put this name) make photograph.webp get the same modified date as photograph.jpg.
Code:
touch photograph.webp -dr photograph.jpg
This works for me, but I want to find out if there is possible to do this directly from file manager.

My idea is to set it up somehow so that in file manager I can select two files, and somehow have a menu that call on a command that involve the path of the two files.

Is this possible?
See here - https://docs.xfce.org/xfce/thunar/custom-actions
Your Command would probably be something as simple as: touch %f
Thank you very much, that seems to be the solution for me Smile
...
(05-16-2018, 06:20 PM)NN link Wrote: [ -> ]Jerry, is it possible to add to 'custom actions' formatting a USB device like in Nautilus (and in Windows) in Thunar? What is the command? Thank you beforehand.

Not that I am aware of. This thread is Solved.
...