script-server icon indicating copy to clipboard operation
script-server copied to clipboard

Server_file type parameter issue.

Open kodifan opened this issue 1 year ago • 2 comments

Hello probably it has been answered somewhere but i cannot find it:) I want to create one script that does some magic with mkv files on my server (mainly subtitle manipulation on tv shows) I want to be able to either change one given file or whole folder with many files I tried to use Server_file parameter with any file type but it seems that is not working as expected (its not intended to work with recursive option which i want to use) Anyway i thought that i can use two parameters:

  1. folder (required)
  2. file And when i do not choose any specific file script will run for all files in folder, but when a file is chosen - will run only for that specific file in folder. But I cant pass a folder name from parameter 1 to configuration of parameter 2 How to achieve such configuration ? Is it even possible ?

kodifan avatar Oct 01 '23 20:10 kodifan

Hi @kodifan, why can't you pass parameter 1 to parameter 2? How are you trying to do it?

Also, may be you can use "recursive_file" feature instead: https://github.com/bugy/script-server/wiki/Script-config#file_recursive A user would be able to select either a file or a folder from the dialog

bugy avatar Oct 02 '23 13:10 bugy

Hi @kodifan, why can't you pass parameter 1 to parameter 2? How are you trying to do it?

Also, may be you can use "recursive_file" feature instead: https://github.com/bugy/script-server/wiki/Script-config#file_recursive A user would be able to select either a file or a folder from the dialog

Why cant I pass ?? Because i dont know how to do it :) To be clear - i dont want to pass it in bash script that i wrote. I want to pass it from one parameter configuration (folder) to second parameter file as File directory field.

As I said recursive is kind not working to me for both files and directory. No mater what I tried one of those two think do not work. Try it your self. You cant select either a folder or a file when recursive option is enabled. If there is a some trick please share runner config with i will try it myslef

kodifan avatar Oct 02 '23 17:10 kodifan