Linux Lite Forums
File manager - can I set it to run a command on selected files - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5)
+--- Forum: Other (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=20)
+--- Thread: File manager - can I set it to run a command on selected files (/showthread.php?tid=5250)



File manager - can I set it to run a command on selected files - Sprintrdriver - 05-15-2018

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?


Re: File manager - can I set it to run a command on selected files - Valtam - 05-16-2018

See here - https://docs.xfce.org/xfce/thunar/custom-actions
Your Command would probably be something as simple as: touch %f


Re: File manager - can I set it to run a command on selected files - Sprintrdriver - 05-16-2018

Thank you very much, that seems to be the solution for me Smile


Re: File manager - can I set it to run a command on selected files - NN - 05-16-2018

...


Re: File manager - can I set it to run a command on selected files - Valtam - 05-17-2018

(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.


Re: File manager - can I set it to run a command on selected files - NN - 05-17-2018

...