11. Transfer Target: Ask For Target Folder
add chapter

Objective: User is asked where the images should be saved.

Two transfer targets are needed for this operation.

  1. The first transfer target belongs to the’ type ‘Execute Script’ and contains following script:
target_folder = ut.askUserFolder ('Please select a folder',
'C:/exports');
target_folder = ut.trimmed(target_folder);
//ut.notifyUser('Selected:', '"' + target_folder + '"');
if (target_folder.length > 0)
 job.setKeyValue('transfer_folder', target_folder);
else {
 //
 // Aborting from user will abort the complete transfer, no targets will be executed.
 //
 ut.terminateTransfer();
}

2.The second transfer target belongs to the type ‘Transfer Images’, here the ‘Target Folder’ must contain following string: $job.getKeyValue(‘transfer_folder’)$