I want to specify the name for the final file in the command
Copy ARCHIVE=single HERE FILE="{$extract_dir}" CREATEFOLDER="{$final_file}2.cbz"
The FILE option works fine and it take the source directory for the compression
BUT it always generate a file with the name of the directory + .zip
I would like to do differently. I want to indicate the file name and extension.
I tried even not using variables
CREATEFOLDER="TEST"
CREATEFOLDER="TEST.zip"
CREATEFOLDER="TEST.cbz"
but nothing happen. I may be using wrong option.
May be there is no option to generate a file with an different extension than .zip
In this case I will have to rename it.
If you add .cbz to the list of zip file extensions in Preferences / Zip & Other Archives / Zip Files then Opus will accept that as the suffix when creating the new archive.
Best to keep the plugin turned on and not add the extension to the list of zip extensions.
At the moment, the plugin lets you modify cbz archives but not create new ones. That was done to avoid spamming the drop-down list of archive types with duplicate formats, but maybe it'd make more sense to reverse that decision, or allow them to be created but hide them from the list. I'll take a look when I have a moment.
Next beta will let you do this to create a new CBZ archive:
Copy ARCHIVE=.cbz HERE CREATEFOLDER="Archive Name"
(Note that CREATEFOLDER is ignored if you're specifying ARCHIVE=single or similar, since the single-file-per-item mode automatically names each archive after each item. But you don't even need that mode when creating just one archive as in this example.)