Jscript issues

When running the jscript Foldername_to_Tags_Append, I have a few files (23 out of over 66K) that kicked off a set attributes error. The bug part of this seems to be that even though I select "Skip all Conflicting Files", the script halts at each one individually until I manually hit skip again.

What's that?

Afaik, the skip option is meant for other type of operations. So it would be very helpful if you could show the script you mentioned, especially if it's intended to be used with so many files at once; it should take error handling into account. Also, I think that the dialog msg that appears when there is an error setting metadata is unskippable (I'm not 100% sure about that).

That said, IMO using keywords as a form of ID is surely not the best way here(you waste a lot of time just modifying them and then more when you want to search for them).
There are better ways to organize files, depending on the context, of course. In Opus, the simplest way that comes to mind would be to use collections. You can also implement database usage, both method would be faster and better because no file modification is involved.

1 Like

Well, since my job is a professional photo organizer for clients, they like to be able to search their collections based on facial recognition and keywords/tags. I'm working with collections with millions of files/duplicates that have all kinds of varying information. My job is to clean them up without throwing away parts of the baby with the bathwater. They create smart albums/collections based on keyword/date/person queries that can be used regardless of user platform.
The script was written by Leo and I love it. Since I don't do a lot of scripting, I wasn't aware that "skip all conflicting files" may not be an option for this kind of operation. I would've thought if you can skip a file, you could skip all similar files.
I will enclose the script.

Your script is running a separate command on each file. Each command only acts on a single file and has no knowledge of the next file or command (they haven't even been run yet, so it would be impossible). The Skip option will only skip the file for the current command.

1 Like

Ah, I see. Thank you for explaining this to me, Leo. Would it be feasible to add code to set a flag or something comparable to do a check and keep going so I can run this as a batch job overnight?