Quantcast
Channel: voidtools forum
Viewing all articles
Browse latest Browse all 2710

Everything 1.5 Alpha • Re: Custom Open Commands

$
0
0
Am trying to build a custom open command for mpv video player.
I have figured out most things thanks to this thread, am wondering if this is possible with custom commands.
I would like to as well passing the full file path to a command line tool, also pass a everything property to the belonging to the same file.

For example in my everything I have two video files that have a custom property called
timestamp
(achieved via
custom_property0
ini);
I would like to define a custom command that when run will open the selected file in a MPV video player, as if I manually typed in PowerShell/cmd;

Code:

mpv "c:\videoA.mp4" --start=00:03:40
--start=
is a flag belonging to MPV, I would like to pass it the files
timestamp
property. I tried the following everything "command" valu, it worked but the timestamp here is hardcoded;

Code:

$exec("mpv" --start=00:03:40 "%1")
How can I dynamically pass the files
timestamp
property to
$exec()
?


interestingly enough, I tried a snippet that void shared as a solution with someone above, and it worked, I MPV received a jpg file, so can
$exec()
recieve any everything property too?

Code:

$exec("mpv" \"<remove-extension:%1>.jpg\")

am on
Version 1.5.0.1399a (x64)

Statistics: Posted by Ralf_Reddings — Fri Sep 26, 2025 9:28 pm



Viewing all articles
Browse latest Browse all 2710

Latest Images

Trending Articles



Latest Images