Is it possible to collapse a group with a certain UUID via AppleScript?
I intend to write an AppleScript that collapses all open groups but I already fail with the first command.
ChatGPT suggests the following, but that doesn’t work:
tell application id "DNtp"
set theGroup to get record with uuid "7718548A-..."
set collapsed of theGroup to true
end tell
(It probably hasn’t seen enough AppleScript to be able to generate more than a kind of satirical pastiche, and it contains no model at all of what things are based on, or whether they work).
Chatpgt has already helped me to adapt another script so that it works.
Do you know another way to close a group via script? I can do it manually with klicking on > (triangle) and holding ⇧⌥
When I open a workspace there are many open groups and I cannot get rid of them.
other languages for which it can produce something usable ?
It produces more usable material where it has seen much more, and built a richer statistical model.
Can be good for generic JS, for example.
(The AS corpus is just too small, and too fragmented by the differing object models of each application. DEVONthink parents don’t have a collapsed property, though properties of that name may be been seen in AppleScript code – for other applications)
Of course, it involves no model of what works and why, but if thousands of creatures are moving continuously through the forest, it can form a fairly high-resolution statistical map of which paths are most well worn, and in a certain type of context the best-worn cliché can happen to be what you need.