View Single Post
Old 12-26-2020, 06:17 AM   #194
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,197
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ownedbycats View Post
Also, how experimental is the "use multiple selections" feature? Agent Ransack fails to launch entirely with this:

Attachment 184268

Code:
      {
        "active": true,
        "chain_settings": {
          "chain_links": [
            {
              "action_name": "Open With",
              "action_settings": {
                "allow_multiple": true,
                "args": "-d",
                "path_opt": "folder",
                "path_sep": ";",
                "path_to_binary": "C:\\Program Files\\Mythicsoft\\Agent Ransack\\AgentRansack.exe",
                "use_default_app": false
              },
              "comment": ""
            }
          ],
          "refresh_gui": true
        },
        "image": "",
        "menuText": "Search with Agent Ransack",
        "subMenu": ""
      },
This works in command prompt:
"C:\Program Files\Mythicsoft\Agent Ransack\AgentRansack.exe" -d "D:\Test1";"D:\Test2"

The action works if multiple selections is disabled.

Note that nothing appeared in Ransack's error log (it does if I send it a -d with no paths).

EDIT: Debug log:

Code:
Action Chains: Starting chain: Search with Agent Ransack
Action Chains: Search with Agent Ransack: starting action No. 1: Open With
Open:  C:\Program Files\Mythicsoft\Agent Ransack\AgentRansack.exe (file):  "D:\Documents\My Books\Jenny Oldfield\Starlight (5627)";"D:\Documents\My Books\Jenny Oldfield\Steamboat Charlie (5626)"  (args):  -d mutiple:  True
About to run a command: C:\Program Files\Mythicsoft\Agent Ransack\AgentRansack.exe
Job Spy: self.gui.tags_view.recount() is enhanced for showing icons of user category child values...
Action Chains: chain (Search with Agent Ransack) finished in: 0.2760617733001709
ANOTHER EDIT: Here's another debug log of opening a file with "multiple selections" turned off.

Code:
Action Chains: Starting chain: Search with Agent Ransack
Action Chains: Search with Agent Ransack: starting action No. 1: Open With
Open:  C:\Program Files\Mythicsoft\Agent Ransack\AgentRansack.exe (file):  D:\Documents\My Books\Jenny Oldfield\Steamboat Charlie (5626)  (args):  -d mutiple:  False
About to run a command: C:\Program Files\Mythicsoft\Agent Ransack\AgentRansack.exe
Job Spy: self.gui.tags_view.recount() is enhanced for showing icons of user category child values...
Action Chains: chain (Search with Agent Ransack) finished in: 0.2923429012298584
The feature is experimental for different reasons, one of them is that I cannot cater to every possible program and every possible OS. I do not use Windows so I cannot debug this particular program.

However, from looking at your debug, one possible problem is that I did not account for program paths with spaces (missed this because it does not happen on linux). The version I will post later today will correct this by double quoting the program we are calling. If this does not help, I cannot offer much assistance with this.

Last edited by capink; 12-26-2020 at 07:22 AM.
capink is offline   Reply With Quote