Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 12-26-2020, 01:58 PM   #196
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,010
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by capink View Post
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.
I actually thought something like that might've happened. If you don't enclose the application path, you get something like "C:\Program is not recognized blah blah blah."

This time I did get an error in Ransack, which seems to indicate that AC tried to send the paths before the argument (the intended command-line is posted in #192 for reference). Not sure if that's another Linux difference.*

Code:
2020.12.26 14:56:07:786 Unexpected command line parameter: D:\Documents\My Books\Jenny Oldfield\Starlight (5627)
New debug:

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)" "D:\Documents\My Books\Jenny Oldfield\Starlight (5627)"  (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.28754210472106934
* I once managed to screw up and get a filename with a colon in Windows, which isn't ever supposed to happen. I couldn't do anything with it from within the Windows environment because the path was invalid. Eventually grabbed a Linux boot disk. That was able to rename it.

Last edited by ownedbycats; 12-26-2020 at 02:06 PM.
ownedbycats is online now   Reply With Quote
Old 12-26-2020, 02:51 PM   #197
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,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
OK, I changed the way multiple selections work (not sure how this affects macos). I replaced the previous test version with another one (in the same post).

If this one does not work, or breaks the functionality for other platforms, I will remove the multiple selections and revert to a simpler one selection only. I need someone to confirm that this is working on macos at least for single selections.

Also, I need the debug output for your first problem with the action condition, that is more critical to deal with.
capink is offline   Reply With Quote
Advert
Old 12-26-2020, 03:18 PM   #198
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,745
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by ownedbycats View Post
<snip>
* I once managed to screw up and get a filename with a colon in Windows, which isn't ever supposed to happen. I couldn't do anything with it from within the Windows environment because the path was invalid. Eventually grabbed a Linux boot disk. That was able to rename it.
Colons in NTFS file names are legitimate. Firstly the one we all know and hate, after a device name e.g. "D:".

They are also used to delimit Alternate Data Stream names. Notepad knows about them - create a file (e.g.my.file), and then run the command: "notepad my.file:note".

See https://en.wikipedia.org/wiki/NTFS#A...eams_.28ADS.29

BR
BetterRed is offline   Reply With Quote
Old 12-26-2020, 03:25 PM   #199
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,010
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
This time, I got the "unexpected command line parameter" for both books.

Ransack's error log:

Code:
2020.12.26 16:14:42:871 App version: 8.5.2951.1
-------------------
2020.12.26 16:14:44:296 Unexpected command line parameter: D:\Documents\My Books\Jenny Oldfield\Steamboat Charlie (5626)
-------------------
2020.12.26 16:14:45:062 Unexpected command line parameter: D:\Documents\My Books\Jenny Oldfield\Starlight (5627)
-------------------
2020.12.26 16:14:46:061 Search stopped
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\\Steamboat Charlie (5626)', 'D:\\Documents\\My Books\\Jenny Oldfield\\Starlight (5627)']  (args):  -d sep:   ;
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.22805213928222656

edit: moving conditional stuff to new post

Last edited by ownedbycats; 12-26-2020 at 05:40 PM.
ownedbycats is online now   Reply With Quote
Old 12-26-2020, 05:34 PM   #200
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,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ownedbycats View Post
Also, the single field edit conditional is working now. Debug if you need it anyways (sorry for length, wasn't sure what was relevant):
That's strange because I have not changed anything in the conditions code except for more debug statements. Are you sure it wasn't working yersterday?

Quote:
Originally Posted by ownedbycats View Post
This time, I got the "unexpected command line parameter" for both books.
Ransack's error log
Another version attached to the same post. Hopefully this one does it.
capink is offline   Reply With Quote
Advert
Old 12-26-2020, 05:46 PM   #201
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,010
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
The conditional seems to be working now. Here's some debug info if you want to see it anyways.

Here's the chain:
Spoiler:

Code:
{
        "active": true,
        "chain_settings": {
          "chain_links": [
            {
              "action_name": "Single Field Edit",
              "action_settings": {
                "col_name": "#percentread",
                "value_type": "prompt"
              },
              "comment": "Set #percentread column",
              "condition_settings": {
                "cmp_type": "=",
                "datatype": "number",
                "template": "program: globals(selection_count)",
                "value": 1.0
              }
            },
            {
              "action_name": "Calibre Actions",
              "action_settings": {
                "disable_busy_cursor": true,
                "selection": [
                  {
                    "display": "Store/Restore current bookmark",
                    "path": [
                      "KoboUtilities",
                      "Store/Restore current bookmark"
                    ],
                    "paths_text": "Store/Restore current bookmark"
                  }
                ]
              },
              "comment": "Restore bookmarks"
            },
            {
              "action_name": "Calibre Actions",
              "action_settings": {
                "disable_busy_cursor": true,
                "selection": [
                  {
                    "display": "Upload covers for Selected Books",
                    "path": [
                      "KoboUtilities",
                      "Upload covers for Selected Books"
                    ],
                    "paths_text": "Upload covers for Selected Books"
                  }
                ]
              },
              "comment": "Re-upload cover"
            },
            {
              "action_name": "Single Field Edit",
              "action_settings": {
                "col_name": "#onkobo",
                "value": true,
                "value_type": "predefined"
              },
              "comment": "Update #onkobo column"
            }
          ],
          "refresh_gui": true
        },
        "condition_settings": {
          "cmp_type": "=",
          "datatype": "text",
          "template": "program: connected_device_name('main')",
          "value": "Kobo Aura HD"
        },
        "image": "sync.png",
        "menuText": "Restore Device Bookmarks",
        "subMenu": ""
      },
      {
        "active": true,
        "chain_settings": {},
        "image": "",
        "menuText": "",
        "subMenu": ""
      },

Debug log (I canceled the restore and re-upload):
Spoiler:

Code:
debug1: run_check: global_vars: {'_chain_name': 'Quick Open Tags Manager', '_chain_iteration': '1', 'location': 'library', 'selection_count': '1'}
    template: program: globals(selection_count)
    value: 1.0
    operator: <built-in function eq>
    template_output: 1
debug2: template_output: 1.0
    output_type: <class 'float'>
debug3: condition_settings: {'cmp_type': '=', 'datatype': 'number', 'template': 'program: globals(selection_count)', 'value': 1.0}
    current_selection_count: 1
    is_true: True
debug1: run_check: global_vars: {'_chain_name': 'Restore Device Bookmarks', '_chain_iteration': '1', 'location': 'library', 'selection_count': '1'}
    template: program: connected_device_name('main')
    value: Kobo Aura HD
    operator: <built-in function eq>
    template_output: Kobo Aura HD
debug2: template_output: Kobo Aura HD
    output_type: <class 'str'>
debug3: condition_settings: {'cmp_type': '=', 'datatype': 'text', 'template': "program: connected_device_name('main')", 'value': 'Kobo Aura HD'}
    current_selection_count: 1
    is_true: True
Action Chains: Starting chain: Restore Device Bookmarks
debug1: run_check: global_vars: {'_chain_name': 'Restore Device Bookmarks', '_chain_iteration': '1', 'location': 'library', 'selection_count': '1', '_action_name': 'Single Field Edit', '_action_comment': 'Set #percentread column', '_action_index': '0'}
    template: program: globals(selection_count)
    value: 1.0
    operator: <built-in function eq>
    template_output: 1
debug2: template_output: 1.0
    output_type: <class 'float'>
debug3: condition_settings: {'cmp_type': '=', 'datatype': 'number', 'template': 'program: globals(selection_count)', 'value': 1.0}
    current_selection_count: 1
    is_true: True
Action Chains: Restore Device Bookmarks: starting action No. 1: Single Field Edit
debug1: run_check: global_vars: {'_chain_name': 'Restore Device Bookmarks', '_chain_iteration': '1', 'location': 'library', 'selection_count': '1', '_action_name': 'Calibre Actions', '_action_comment': 'Restore bookmarks', '_action_index': '1'}
    template: program: connected_device_name('main')
    value: Kobo Aura HD
    operator: <built-in function eq>
    template_output: Kobo Aura HD
debug2: template_output: Kobo Aura HD
    output_type: <class 'str'>
debug3: condition_settings: {'cmp_type': '=', 'datatype': 'text', 'template': "program: connected_device_name('main')", 'value': 'Kobo Aura HD'}
    current_selection_count: 1
    is_true: True
Action Chains: Restore Device Bookmarks: starting action No. 2: Calibre Actions
Actions Chains: Calibre Actions: paths > ['KoboUtilities', 'Store/Restore current bookmark']
Actions Chains: Calibre Actions: Found action: &Store/Restore current bookmark
DEBUG:  200.6 Have a Kobo device connected connected
DEBUG:  200.6 BEGIN Get Device Path
DEBUG:  200.6 Root path of device: K:\
DEBUG:  200.6 END Get Device Path
DEBUG:  200.6 KoboUtilities:get_device - self.device_path="K:\"
DEBUG:  200.6 KoboUtilities:get_device - drive_info: {'main': {'device_store_uuid': '97dc9975-085a-4dc5-a7f4-a614689983f3', 'device_name': 'Kobo Aura HD', 'prefix': 'K:/', 'date_last_connected': '2020-12-26T22:44:05.310516+00:00', 'location_code': 'main', 'last_library_uuid': 'b96decbc-fcca-470f-b7af-8e1338a26310', 'calibre_version': '5.8.1'}}
DEBUG:  200.6 migrate_library_config_if_required - start
DEBUG:  200.6 get_library_config - library_config: {'SchemaVersion': 0.1, 'profiles': {'Kobo Aura HD': {'customColumnOptions': {'currentReadingLocationColumn': '#kobobookmark', 'lastReadColumn': '#lastread', 'percentReadColumn': '#percentread', 'ratingColumn': 'rating'}, 'forDevice': '97dc9975-085a-4dc5-a7f4-a614689983f3', 'profileName': 'Kobo Aura HD', 'storeOptionsStore': {'storeOnConnect': False, 'promptToStore': False, 'storeIfMoreRecent': True, 'doNotStoreIfReopened': False}, 'updateOptionsStore': {'doEarlyFirmwareUpdate': False, 'doFirmwareUpdateCheck': False, 'firmwareUpdateCheckLastTime': 0}}}, 'readingPositionChangesStore': {'selectBooksInLibrary': True, 'updeateGoodreadsProgress': False}}
DEBUG:  200.6 get_prefs - start - store_name='storeOptionsStore'
DEBUG:  200.6 get_plugin_pref - start - store_name='commonOptionsStore', option='individualDeviceOptions'
DEBUG:  200.6 get_prefs - start - store_name='backupOptionsStore'
DEBUG:  200.6 get_prefs - start - store_name='updateOptionsStore'
DEBUG:  200.6 BEGIN Get Device Path
DEBUG:  200.6 Root path of device: K:\
DEBUG:  200.6 END Get Device Path
DEBUG:  200.6 _get_selected_ids - self.gui.current_view().model() <calibre.gui2.library.models.BooksModel object at 0x000002926C4258B0>
DEBUG:  200.6 migrate_library_config_if_required - start
DEBUG:  200.6 get_library_config - library_config: {'SchemaVersion': 0.1, 'profiles': {'Kobo Aura HD': {'customColumnOptions': {'currentReadingLocationColumn': '#kobobookmark', 'lastReadColumn': '#lastread', 'percentReadColumn': '#percentread', 'ratingColumn': 'rating'}, 'forDevice': '97dc9975-085a-4dc5-a7f4-a614689983f3', 'profileName': 'Kobo Aura HD', 'storeOptionsStore': {'storeOnConnect': False, 'promptToStore': False, 'storeIfMoreRecent': True, 'doNotStoreIfReopened': False}, 'updateOptionsStore': {'doEarlyFirmwareUpdate': False, 'doFirmwareUpdateCheck': False, 'firmwareUpdateCheckLastTime': 0}}}, 'readingPositionChangesStore': {'selectBooksInLibrary': True, 'updeateGoodreadsProgress': False}}
DEBUG:  200.6 get_column_names - columns_config: {'currentReadingLocationColumn': '#kobobookmark', 'lastReadColumn': '#lastread', 'percentReadColumn': '#percentread', 'ratingColumn': 'rating'}
Actions Chains: Calibre Actions: Finishing run action
debug1: run_check: global_vars: {'_chain_name': 'Restore Device Bookmarks', '_chain_iteration': '1', 'location': 'library', 'selection_count': '1', '_action_name': 'Calibre Actions', '_action_comment': 'Re-upload cover', '_action_index': '2'}
    template: program: connected_device_name('main')
    value: Kobo Aura HD
    operator: <built-in function eq>
    template_output: Kobo Aura HD
debug2: template_output: Kobo Aura HD
    output_type: <class 'str'>
debug3: condition_settings: {'cmp_type': '=', 'datatype': 'text', 'template': "program: connected_device_name('main')", 'value': 'Kobo Aura HD'}
    current_selection_count: 1
    is_true: True
Action Chains: Restore Device Bookmarks: starting action No. 3: Calibre Actions
Actions Chains: Calibre Actions: paths > ['KoboUtilities', 'Upload covers for Selected Books']
Actions Chains: Calibre Actions: Found action: &Upload covers for Selected Books
DEBUG:  201.6 Have a Kobo device connected connected
DEBUG:  201.6 BEGIN Get Device Path
DEBUG:  201.6 Root path of device: K:\
DEBUG:  201.6 END Get Device Path
DEBUG:  201.6 KoboUtilities:get_device - self.device_path="K:\"
DEBUG:  201.6 KoboUtilities:get_device - drive_info: {'main': {'device_store_uuid': '97dc9975-085a-4dc5-a7f4-a614689983f3', 'device_name': 'Kobo Aura HD', 'prefix': 'K:/', 'date_last_connected': '2020-12-26T22:44:05.310516+00:00', 'location_code': 'main', 'last_library_uuid': 'b96decbc-fcca-470f-b7af-8e1338a26310', 'calibre_version': '5.8.1'}}
DEBUG:  201.6 migrate_library_config_if_required - start
DEBUG:  201.6 get_library_config - library_config: {'SchemaVersion': 0.1, 'profiles': {'Kobo Aura HD': {'customColumnOptions': {'currentReadingLocationColumn': '#kobobookmark', 'lastReadColumn': '#lastread', 'percentReadColumn': '#percentread', 'ratingColumn': 'rating'}, 'forDevice': '97dc9975-085a-4dc5-a7f4-a614689983f3', 'profileName': 'Kobo Aura HD', 'storeOptionsStore': {'storeOnConnect': False, 'promptToStore': False, 'storeIfMoreRecent': True, 'doNotStoreIfReopened': False}, 'updateOptionsStore': {'doEarlyFirmwareUpdate': False, 'doFirmwareUpdateCheck': False, 'firmwareUpdateCheckLastTime': 0}}}, 'readingPositionChangesStore': {'selectBooksInLibrary': True, 'updeateGoodreadsProgress': False}}
DEBUG:  201.6 get_prefs - start - store_name='storeOptionsStore'
DEBUG:  201.6 get_plugin_pref - start - store_name='commonOptionsStore', option='individualDeviceOptions'
DEBUG:  201.6 get_prefs - start - store_name='backupOptionsStore'
DEBUG:  201.6 get_prefs - start - store_name='updateOptionsStore'
DEBUG:  201.6 BEGIN Get Device Path
DEBUG:  201.6 Root path of device: K:\
DEBUG:  201.6 END Get Device Path
DEBUG:  201.6 _get_selected_ids - self.gui.current_view().model() <calibre.gui2.library.models.BooksModel object at 0x000002926C4258B0>
DEBUG:  201.6 upload_covers - selectedIDs: [3096]
Actions Chains: Calibre Actions: Finishing run action
debug1: run_check: global_vars: {'_chain_name': 'Restore Device Bookmarks', '_chain_iteration': '1', 'location': 'library', 'selection_count': '1', '_action_name': 'Single Field Edit', '_action_comment': 'Update #onkobo column', '_action_index': '3'}
    template: program: connected_device_name('main')
    value: Kobo Aura HD
    operator: <built-in function eq>
    template_output: Kobo Aura HD
debug2: template_output: Kobo Aura HD
    output_type: <class 'str'>
debug3: condition_settings: {'cmp_type': '=', 'datatype': 'text', 'template': "program: connected_device_name('main')", 'value': 'Kobo Aura HD'}
    current_selection_count: 1
    is_true: True
Action Chains: Restore Device Bookmarks: starting action No. 4: Single Field Edit
Job Spy: self.gui.tags_view.recount() is enhanced for showing icons of user category child values...
Action Chains: chain (Restore Device Bookmarks) finished in: 7.309176445007324
Attached Files
File Type: zip actionchains.zip (8.7 KB, 588 views)

Last edited by chaley; 12-26-2020 at 05:49 PM. Reason: Added spoilers
ownedbycats is online now   Reply With Quote
Old 12-26-2020, 06:04 PM   #202
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,010
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Sorry, I decided to split off my conditional post at the same time you posted.
ownedbycats is online now   Reply With Quote
Old 12-26-2020, 06:15 PM   #203
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,010
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by capink View Post
That's strange because I have not changed anything in the conditions code except for more debug statements. Are you sure it wasn't working yersterday?
Could've been gremlins. I have a particular talent for somehow generating one-off glitches in software.

Quote:
Another version attached to the same post. Hopefully this one does it.
Well, this time the error's different:

Code:
2020.12.26 19:13:22:342 App version: 8.5.2951.1
-------------------
2020.12.26 19:13:25:509 Unexpected command line parameter: ;D:\Documents\My Books\Jenny Oldfield\Starlight (5627)
-------------------
2020.12.26 19:13:26:502 Search stopped
(Note that -d "D:\Path1;D:\Path2" does work in command-line, you don't necessarily need to split them apart)

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)', 'D:\\Documents\\My Books\\Jenny Oldfield\\Starlight (5627)']  (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.8465745449066162
I noticed the use of single quotes in the debug log. Not sure if that's being passed along, but Windows uses double-quotes for paths.

Last edited by ownedbycats; 12-26-2020 at 06:28 PM.
ownedbycats is online now   Reply With Quote
Old 12-26-2020, 06:19 PM   #204
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,010
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Some links that may be of assistance:
https://ss64.com/nt/syntax-esc.html
https://www.robvanderwoude.com/escapechars.php

Last edited by ownedbycats; 12-26-2020 at 06:21 PM.
ownedbycats is online now   Reply With Quote
Old 12-26-2020, 06:33 PM   #205
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,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
OK, a new version is attached to the same post. It does not change anything, but adds an additional debug statement. Just to know if I am doing something wrong. It should print the whole command.
capink is offline   Reply With Quote
Old 12-26-2020, 06:51 PM   #206
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,010
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
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)', 'D:\\Documents\\My Books\\Jenny Oldfield\\Starlight (5627)']  (args):  -d mutiple:  True sep:   ;
debug1: cmd: "C:\Program Files\Mythicsoft\Agent Ransack\AgentRansack.exe" -d "D:\Documents\My Books\Jenny Oldfield\Steamboat Charlie (5626)" ;"D:\Documents\My Books\Jenny Oldfield\Starlight (5627)"
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.7905950546264648
There's a space before the semicolon that's causing it to fail. It works if I remove the space. I wonder how it got in there.
ownedbycats is online now   Reply With Quote
Old 12-26-2020, 06:54 PM   #207
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,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Check the settings box and make sure it has no extra space.
capink is offline   Reply With Quote
Old 12-26-2020, 06:58 PM   #208
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,010
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
There was a space in there. I removed it and it worked!
ownedbycats is online now   Reply With Quote
Old 12-26-2020, 07:03 PM   #209
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,010
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Thank you!
ownedbycats is online now   Reply With Quote
Old 12-28-2020, 04:18 AM   #210
Thasaidon
Hedge Wizard
Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.
 
Thasaidon's Avatar
 
Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
Quick Question

Hi

I have been playing with the plugin recently and have been trying to set up a chain that "clicks on" certain icons in Calibre Editor.

I have not yet found a way of doing this. Am I missing something or is it not possible without writing a load of code?

Last edited by Thasaidon; 12-28-2020 at 04:18 AM. Reason: typo
Thasaidon is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Editor Plugin] Editor Chains capink Plugins 106 06-17-2025 05:36 PM
Action Chains Resources capink Plugins 77 06-16-2025 12:45 PM
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB lrpirlet Plugins 2 08-18-2022 03:15 PM
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 14 04-04-2021 05:25 AM


All times are GMT -4. The time now is 01:37 PM.


MobileRead.com is a privately owned, operated and funded community.