How to run Javascript in kid3

Hello,

I created a simple js and placed it in the qml\scripts folder, then I added it to user actions. I called it from the context menu but kid3 complains that it couldn’t execute the js.

What am I doing wrong ?

Also, instead of calling my scripts from the context menu how can I call them from tools menu or file menu or create a shortcut on the toolbar ?

OS: Windows 7

Kid3 version: 3.9.7

Any help will be greatly appreciated.

Kid3 uses QML which is Qt’s declarative UI language with integrated JavaScript, therefore you have to build a little wrapper around your JavaScript code to run it from Kid3. See QML Examples in the handbook or have a look at the existing QML scripts which come with Kid3.

Running a user action from the File or Tools menu is not possible, however, you can make a keyboard shortcut, see the section “User Actions” in the “Keyboard Shortcuts” tab of the settings. You can also use the execute command of kid3-cli to run your QML-script outside of Kid3.