Script: skip/ignore selected files

Advanced Renamer forum
#1 : 25/05-19 10:48
John
John
Posts: 10
In a script I would like to skip files based on certain criteria, ie uncheck or remove them from the list. Is this possible?

John


25/05-19 10:48
#2 : 25/05-19 10:58
David Lee
David Lee
Posts: 261
"If" statement?

You can test properties of the item object or use app.parseTags(). Returning item.newBasename will leave the filename unchanged.




25/05-19 10:58 - edited 25/05-19 11:00
#3 : 25/05-19 16:22
John
John
Posts: 10
Reply to #2: Sorry, I probably wasn't clear. I am working on a script to handle importing from 3 different camera types - reading from SD cards and copying/renaming to a photo repository. For some cameras there are files that I don't want at all so I don't want to do anything with them (eg GoPro: THM/LRV, DJI: html). I could filter them out using a regex when I copy the source folder to the list but I would like to do it programmatically if possible.

Hmm, maybe I'm still not clear


25/05-19 16:22
#4 : 25/05-19 22:55
John
John
Posts: 10
Reply to #3: I should have said 'when I add files to the list', not 'when I copy the source folder to the list'


25/05-19 22:55
#5 : 29/05-19 10:17
John
John
Posts: 10
Reply to #4: So, I assume this isn't possible?


29/05-19 10:17
#6 : 29/05-19 17:35
David Lee
David Lee
Posts: 261
Reply to #4:
I think that you can only use the script method for renaming.


29/05-19 17:35