#1 : 13/05-22 16:16 Emily
Posts: 1
|
Hi, sorry that I don't know regular expressions, but I am looking to move files into one exisiting folder if they contain a certain text string and to another existing folder if they contain a different text string. Is this possible please? I have read the manual but I don't know how to do it without script.
E.g. If file name contains 'firstfolder' move to Folder 1 If file name contains 'secondfolder' move to Folder 2 Thus AB123_firstfolder.jpg to Folder 1 CD123_secondfolder.jpg to Folder 2 CD123_firstfolder.jpg to Folder 1 Folder 1 and Folder 2 are Subfolders of the base folder. Thanks |
#2 : 15/05-22 11:12 David Lee
Posts: 935
|
You will need to use a Script method to set item.newPath:
if (item.name.includes(dir = "firstfolder")) item.newPath = item.path + dir; if (item.name.includes(dir = "secondfolder")) item.newPath = item.path + dir; |