I have an AppleScript that finds the record I’m looking for and opens it in DT, using the command
set theTab to open tab for record x
The problem I am having (which seems to be new, though I may not have noticed before) is that if a window for record x is already open, it opens a new one. What I can’t work out how to do is check whether a window/tab for record x already exists, and if so, to set theTab to that, rather than generating a new one. Sorry, this is probably straightforward and I’m just being slow. At least, I hope so …
It’s better to examine the AppleScript dictionary to learn such things (especially instead of querying ChatGPT). The content record is a property of the application, tab, or window.
current tab is a property of a think window not the application.