Archive single file without dialog with name of zip file matching first word of file

Hi, I need a script of a custom archive button that will

  1. archive just a single file (selected); keep the original file, don't delete it.
  2. does not have a dialog
  3. names the zip archive based on the first word of the file (until the first space)

For instance, a sample file 'R4-2412211 Test Conditions.docx' should be archived to 'R4-2412211.zip'

@nodeselect
Copy HERE ARCHIVE CREATEFOLDER="{=RegEx(file, "(.*?) .*", "\1")=}"
4 Likes

Excellent, works beautifully