Skip to main content

Rename output file using Imagesfiles.copy method


QAID # 422 Published

Question / Problem:

How can I rename my output file with the Imagesfiles.copy method in my custom release script?

Answer / Solution:

It is not possible to rename your output file using the standard functions in Ascent Capture. We always name the output file/folder an eight-digit hexadeximal number based upon the document ID padded with zeros to 8 characters. The only workaround for this is to either move or rename the file after it has been placed in the target destination.

You can get the released filename or directory (in the case of a single page image format selection) from the imagefiles.releaseddirectory property. From here you can use the filesystem object or use the "rename" function to rename the released file.

For example:

rename (DocumentData.ReleasedDirectory, "C:\Ascent\MyNewName.tif")

Applies to:

Product Version Category
CAPTURE 5.0 Release - Custom
CAPTURE 5.5 Release - Custom
CAPTURE 5.51 Release - Custom
CAPTURE 6.0 Release - Custom
CAPTURE 6.1 Release - Custom
CAPTURE 7.0 Release - Custom
CAPTURE 7.5 Release - Custom