Custom button to zip and rename selected files

I'm trying to create a custom button that will zip files, but instead of just file.zip it will name them file.ext.zip (keep the original filename and extension but appending the .zip to it)

so
file1.ext
file2.ext

will zip and become

file1.ext.zip
file2.ext.zip

My custom button command to zip them is easy:

[quote]Copy ZIP=single HERE
@NODESELECT[/quote]

but I can't figure out how to rename the NEWLY CREATED files and not the originally selected files. I had a second rename command after the copy, but it renames originals, not new zips.

Anyone know how to do this rename to patern with a copy to zip?

This will do it:

Copy FILE {file$} ZIP HERE CREATEFOLDER {file$}

That's awesome!

Thanks much

I know this is a very old post, but I moved to Win7x64 recently and this button/command isn't working any longer. When I use it the app complains saying

[quote]An error occurred copying 'filename.ext.zip.zip':
The system cannot find the path specified. (3)[/quote]

Is there something that needs to be fixed to make it work again in Win7?

Steps to reproduce
[ul]
[li]Select example file named "filename.ext"[/li]
[li]Click button with previously listed commands[/li]
[li]A file is created in the same folder named filename.ext.zip.zip[/li]
[li] (The zip file created is valid, but contains no files when I open it with 7-zip)[/li]
[li]The error dialog mentioned pops up[/li][/ul]

The command from 2007 still works okay here, at least with Opus 10.0.5.2, trying it on some test files in my Desktop folder, and running it via a toolbar button.

Just out of curiosity (I don't have any need for this currently) I have tested this and it doesn't work for me either!

I have narrowed down where the problem occurs, this is the least amount of toolbar code that produces this error;

Copy FILE {file$} ZIP HERE

Upon further inspection it seems that the ZIP parameter is the one which doesn't behave as expected (Opus 10.0.5.2).

I don't know why it's not working for some, but I just tried it again in a virtual machine, with a completely default Opus configuration, and it works fine in there for me, same as on my normal machine.

I found out why it won't work! In Opus preferences "Enable internal Opus zip support" must be checked (by default it is).

True, the zip functionality in Opus tends not to work if you have turned it off. :slight_smile: