#1 : 25/05-19 10:48 John
Posts: 15
|
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 |
#2 : 25/05-19 10:58 David Lee
Posts: 1125
|
"If" statement?
You can test properties of the item object or use app.parseTags(). Returning item.newBasename will leave the filename unchanged. |
#3 : 25/05-19 16:22 John
Posts: 15
|
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 |
#4 : 25/05-19 22:55 John
Posts: 15
|
Reply to #3: I should have said 'when I add files to the list', not 'when I copy the source folder to the list'
|
#5 : 29/05-19 10:17 John
Posts: 15
|
Reply to #4: So, I assume this isn't possible?
|
#6 : 29/05-19 17:35 David Lee
Posts: 1125
|
Reply to #4:
I think that you can only use the script method for renaming. |