Linux Lite Forums

Software - Support => Other => Topic started by: Sprintrdriver on May 15, 2018, 01:52:49 PM

Title: File manager - can I set it to run a command on selected files
Post by: Sprintrdriver on May 15, 2018, 01:52:49 PM
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: [Select]
touch photograph.webp -dr photograph.jpgThis 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?
Title: Re: File manager - can I set it to run a command on selected files
Post by: Jerry on May 16, 2018, 01:59:21 AM
See here - https://docs.xfce.org/xfce/thunar/custom-actions
Your Command would probably be something as simple as: touch %f
Title: Re: File manager - can I set it to run a command on selected files
Post by: Sprintrdriver on May 16, 2018, 11:51:24 AM
Thank you very much, that seems to be the solution for me :)
Title: Re: File manager - can I set it to run a command on selected files
Post by: NN on May 16, 2018, 02:20:41 PM
...
Title: Re: File manager - can I set it to run a command on selected files
Post by: Jerry on May 16, 2018, 11:50:34 PM
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.
Title: Re: File manager - can I set it to run a command on selected files
Post by: NN on May 17, 2018, 07:13:09 AM
...