Smart Rule Sheets automization keeps getting syntax errors

Hi, I’m stuck in Sheet automization for 3hours with chatgpt, making this script.
I almost tried 100+ apple script to achieve what i want, but it’s always making errors, or not working.

What I want is simple.
My folder structus is like this

Topology103 (tagged: curriculum, DTgroup)
ㄴ topologyvideo (tagged: vLayer, DTgroup)
ㄴㄴ Video (Indexed, tagged: vFileGroup, Contains video files tagged as vFile)
ㄴ vsheets
ㄴ topologydoc (tagged: dLayer, DTgroup)

ㄴ Document (tagged: dFileGroup, Contains document files tagged as dFile)
ㄴㄴdsheets

I want dsheets, vsheets to be synced with vSheets, dSheets.
Since then, I could simpley add column like “Prof. links” “Notes” or something, that only has special meaning to those speicifc curriculum or so, without messing up others folder. custom metadata isn’t helping out, since it would add to every single item in database, which is messed up, as database grows.

AI is well-known for producing buggy or not working scripts. If you want a human to fix it, you should post the code here, so they can copy it. A screenshot means a lot more useless work for humans.
And please include the code in three backticks when posting, like so:
```
code goes here
```

I suppose you mean a group structure in DT, or are you really referring to a folder structure in Finder. If so, is/are these folder/s indexed in DT?

Which means what exactly? If you want them to be the same, perhaps replicants would be the way to go?

That time would’ve been better spent learning to script, imo.

1 Like

Did you try DEVONthink’s script assistant?

What does “synced” mean in this context? It’s obviously not a database sync.