# Insurmountable barrier between AppleScript (talking to DT) and a Swift-UI?

**URL:** <https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454>\
**Category:** Automation\
**Created:** [August 11, 2026, 10:39am UTC](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454 "2026-08-11T10:39:11Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![enchiriadis1](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/e/a88e57/32.png) [@enchiriadis1](https://discourse.devontechnologies.com/u/enchiriadis1)\
**Post date:** [August 11, 2026, 10:39am UTC](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454/1 "2026-08-11T10:39:11Z")

</div>

Hi all,

short question:  
I have an AppleScript collecting Documents inside of DEVONthink (Veriosn 4) via the selection-object.  
Furtheron those collected Docs will be archived in a ZIP-Archiv, packed into a (in DT) pre-defined Mail.  
Finally the Docs are tagged as “Sent” and protocolls inside DT are being created, all from AppleScript (talking with DT).

Idea: Triggering the initial Start-Script from a Swift-UI.  
However: There seems to be a non-passable border between Swift and AppleScript.  
If I click the “Send it…”-Button in Swift, I loose the connection to the selected Documents inside DT.  
Get Errors 5000 and 7000 then.

The aspect I do not understand: A call from terminal as…  
osi /Path-to-Start-Script/  
…works fine.

The same osi-call inside of a Swift-Bundle fails.

The script via NSAppleScript evokes this generell Error-Message:  
scpt:8459:8468: execution error: „DEVONthink“ hat einen Fehler erhalten: Das Programm läuft nicht. (-600)

Question to experienced user (or developers):  
Is there a possibility for overcoming this barrier?  
Or is this a systemical border?

Alternatively (I’m just courious): Ist there an API in DT to SWIFT or alternate languages?

Thanks for your thoughts!

t.

---

<div class="post-metadata">

**Author:** ![cgrunenberg](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cgrunenberg/32/7172_2.png) [@cgrunenberg](https://discourse.devontechnologies.com/u/cgrunenberg)\
**Post date:** [August 11, 2026, 10:40am UTC](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454/2 "2026-08-11T10:40:30Z")

</div>

> [@enchiriadis1](#):
>
> Ist there an API in DT to SWIFT or alternate languages?

No, the only options are currently AppleScript and JavaScript for Automation (JXA).

---

<div class="post-metadata">

**Author:** ![enchiriadis1](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/e/a88e57/32.png) [@enchiriadis1](https://discourse.devontechnologies.com/u/enchiriadis1)\
**Post date:** [August 11, 2026, 10:43am UTC](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454/3 "2026-08-11T10:43:32Z")

</div>

Thanks for reply.  
JavaScript, however, will run into the same hassles, I assume.  
Will loose DT’s focus and selection here as well?!..

---

<div class="post-metadata">

**Author:** ![chrillek](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/chrillek/32/29340_2.png) [@chrillek](https://discourse.devontechnologies.com/u/chrillek)\
**Post date:** [August 11, 2026, 10:57am UTC](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454/4 "2026-08-11T10:57:34Z")

</div>

If you have a problem with code, be it Swift or AS, you need to provide the code, as all crystal balls are currently out of order. So we can’t see what you are doing how.

You could, alternatively, just add a dialog to your AS code that runs the rest of the code when the user clicked ok. Save it as a stand-alone AS program, and the user shouldn’t see any difference to a Swift UI app.

---

<div class="post-metadata">

**Author:** ![enchiriadis1](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/e/a88e57/32.png) [@enchiriadis1](https://discourse.devontechnologies.com/u/enchiriadis1)\
**Post date:** [August 11, 2026, 12:14pm UTC](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454/5 "2026-08-11T12:14:59Z")

</div>

fair point.  
Won’t bother you with plenty of code, but here the last (failed) try on Swift-Side:

```swift
import Foundation
import AppKit

enum ScriptLauncher {
static func runStartScript() {
let menuScriptPath = "/Users/.../com.devon-technologies.think/Menu/Belegversand_1-3/START.scpt"

    let appleScript = NSAppleScript(source: """
    tell application id "DNtp"
        activate
        set sel to selection
        if sel is {} then
            display alert "Bitte wählen Sie Dokumente in DEVONthink aus."
            return
        end if
        
        run script (POSIX file "\(menuScriptPath)")
    end tell
    """)
    
    var error: NSDictionary?
    appleScript?.executeAndReturnError(&error)
    
    if let error = error {
        print("❌ Fehler:", error[NSAppleScript.errorMessage] ?? error.description)
    } else {
        print("✅ Script gestartet")
    }
}
}

```

Idea here: Triggering DT’s Script-Menue via Swift.  
Returns Path-Errors (of course: menuScriptPath is set correctly in version here) and finally:  
❌ Fehler: DEVONthink got an error: Application isn’t running.

Well, at this point DT is running of course!

Ok…, AppleScript-sided:  
START.scpt deligates in dependence of a config-file, stored in DT, to one of two AppleScripts.  
\_belegversandt\_setup.scpt → creates the needed filestructures, Mail-Body, Configs inside of DEVONthink-DB.  
\_belegversand.scpt → does the job of packaging, sending, archinvising, etc.

Entry-Point in START.scpt:

```auto
on run 
with timeout of 3600 seconds
    
    my showWelcomeDialogIfNeeded()
    my runSiblingScript(setupScriptName)
    
end timeout
end run

```

And the core, where the chain Swift → AppleScript → DT breaks, ist probably here in this Sibling-(Apple)-Script \_belegversand.scpt:

-–Extract—

```auto
on getSelectedUUIDs()
tell application id "DNtp"
set sel to selection
if sel is {} then error "Keine Objekte ausgewählt."
    set selCount to count of sel
    set rawList to {}
    
    repeat with i from 1 to selCount
        set anItem to item i of sel
        set end of rawList to (uuid of anItem as rich text)
    end repeat
end tell

set outList to {}
repeat with itemUUID in rawList
    set uuidText to itemUUID as text
    if my isGroupByUUID(uuidText) then
        my writeDebug("Selection ignored group uuid=" & uuidText)
    else
        set end of outList to uuidText
    end if
end repeat

return {selCount, outList}
end getSelectedUUIDs

```

While changing to Swift-UI I loose this selection of UUID’s.

Does this make the idea behind a bit more clearer?

---

<div class="post-metadata">

**Author:** ![chrillek](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/chrillek/32/29340_2.png) [@chrillek](https://discourse.devontechnologies.com/u/chrillek)\
**Post date:** [August 11, 2026, 2:02pm UTC](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454/6 "2026-08-11T14:02:01Z")

</div>

First off: I’m not an AS person. At all. So, I may be off the mark here.

If (!) I understand your code correctly, you use Swift only to run an AppleScript. Why is that – if all you want to do is check if files are selected, your `START.scpt` could do that equally well.

> [@enchiriadis1](#):
>
> Does this make the idea behind a bit more clearer?

Marginally. I think you’re overengineering it. For example, you’re checking for selected records in Swift and than again in `getSelectedUUIDs`. Pointless. And I have no idea what “While changing to Swift-UI I loose this selection of UUIDs” means. Why are you “changing” to Swift UI? And why do you think that _this_ is the issue instead of what the error message seems to tell you.

What I’d do (in a script, not necessarily AS):

- collect all selected records
- get their paths
- create an archive from them “/tmp”
- create the mail containing this archive
- send the mail

Done. All that can be achieved with a script (or several, if you are so inclined). I don’t see where Swift-UI would come into play here.

The following is assuming unique filenames for the selected files. If that’s not the case, remove the `-j` from the `zip` command call. In that case, the zip archive will contain complete paths to the documents, which might be a bit awkward when unzipping the archive again. I tried it with some files here and it did work.

You may of course have more requirements, but I still think that what you want can be achieved with scripting only. Thus avoiding the trouble you’re running into.

```javascript
(() => {
  const mailRecipient = 'recipient@example.com';
  const recipientName = 'The Recipient'
  const mailSender = 'sender@example.com'
  const tmpFile = '/tmp/myarchive.zip'
  const app = Application("DEVONthink");
  const curapp = Application.currentApplication();
  curapp.includeStandardAdditions = true;
  const records = app.selectedRecords.path().map(r => `'${r}'`);
  if (records.length === 0) return;
  curapp.doShellScript(`/usr/bin/zip -jq ${tmpFile} ${records.join(' ')}`)
  const mailApp = Application("Mail");
  const msg = mailApp.OutgoingMessage({sender: mailSender,
           subject: "Zip archive"});
  mailApp.outgoingMessages.push(msg);
  const rcpt = mailApp.Recipient({name: recipientName, 
    address: mailRecipient});
  msg.toRecipients.push(rcpt);
  msg.content = "Hi there";
  const attachment = mailApp.Attachment({fileName:tmpFile})
  msg.attachments.push(attachment)
  mailApp.activate();
  msg.send();
  curapp.doShellScript(`rm ${tmpFile}`)
})()

```

---

<div class="post-metadata">

**Author:** ![enchiriadis1](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/e/a88e57/32.png) [@enchiriadis1](https://discourse.devontechnologies.com/u/enchiriadis1)\
**Post date:** [August 11, 2026, 3:01pm UTC](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454/7 "2026-08-11T15:01:54Z")

</div>

> [@chrillek](#):
>
> All that can be achieved with a script

Yes, chrillek, indeed.  
And so it does. Everything works fine.

Your suggestion using constants is similar to my approach of writing these things into a config-file, which than is read by AppleScript.

Well: It’s just a matter of woman-power.  
My girlfriend is not very comfortable with those technical isssues.  
In fact, I wrote some helpers for her office-accountance, DEVONthink is one tool here for storing bills and so on.

Initial trigger of thinking about an outsided panel was the introduction of a new booking-/tax-year.  
As DEVONthink deals with UUID’s instead of paths and folders, I wrote a script, that gives me the appropriate UUID from a selected object back.

This UUID comes into the config-file, and from here the scripts “know” the place for storing the logs and protocols.  
As my girlfriend is not very common with scripts und ID-Strings, I had the idea of an external panel, from where the config-values are set up or edited.  
There is a colorful button which starts the scripts, and then the job is done, without any use of a START.scpt…  
And, if there may be extensions in the future, we have an UI for setting up those things without writing UUID’s of config-stuff in text-files. That’s the idea behind it.

It’s just an normal user-friendly encapsulation for three scripts, which indeed works brillantly from the DT-Menue.

> [@chrillek](#):
>
> And I have no idea what “While changing to Swift-UI I loose this selection of UUIDs”

Well, inside from AppleScript I have the UUID’s from all selected DEVONthink-Objects in an array.  
My external Swift-Panel doesn’t see anything from any AppleScript-Structure.  
But I think that’s system-immanent, and I assume, that there is no bridge between those two “worlds”.  
So my solution, after a couple of hours of research: My dear and wonderful girlfriend has to get a bit more familiar with UUID’s and some of their distant relatives. 😆

But thank you for your thoughts! 😌

---

<div class="post-metadata">

**Author:** ![chrillek](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/chrillek/32/29340_2.png) [@chrillek](https://discourse.devontechnologies.com/u/chrillek)\
**Post date:** [August 11, 2026, 4:13pm UTC](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454/8 "2026-08-11T16:13:42Z")

</div>

> [@enchiriadis1](#):
>
> As DEVONthink deals with UUID’s instead of paths and folders

It deals with documents. And the UUID is just a way to identify the document. If you have a list of records (like in a selection), you do not need the UUIDs at all because you already _have_ the records. Going from a record to a UUID to get the record is overthinking it.

Perhaps, if you’d take a step back and describe what _exactly_ you’re trying to achieve here (like: I want to create an archive from selected records and mail that to a fixed/variable e-mail address or whatever it _is_ that you want to do) it would be easier to come up with a solution. One that works, I mean. Since what you described originally is apparently _not_ working.

> [@enchiriadis1](#):
>
> Your suggestion using constants is similar to my approach of writing these things into a config-file, which than is read by AppleScript.

Not quite. In one case, the constants (“things”) are close to the code because I assume that they are not contantly changing. In the other case, they are writen over and over again, which makes only sense if these “things” do _not_ change.

Which is quite possible, but even if you do need variables for e-mail recipients etc.: you could use simple dialogs in a script instead of Swift UI.

Mind you: I have nothing against Swift or UIs. Or colorful buttons. Where they are _useful_ and solve a problem. Here, you do not need them, as far as I can see.

> [@enchiriadis1](#):
>
> My dear and wonderful girlfriend has to get a bit more familiar with UUID’s and some of their distant relatives

What makes you think that? What’s wrong with the approach I suggested that works with the selected records without a single look at a single UUID? Provided that it does remotely what you want to do.

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [August 11, 2026, 4:19pm UTC](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454/9 "2026-08-11T16:19:34Z")

</div>

I’m with @chrillek: It’s unclear what you are **specifically** trying to accomplish. It doesn’t appear you have a scripting issue but a process problem.

---

<div class="post-metadata">

**Author:** ![enchiriadis1](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/e/a88e57/32.png) [@enchiriadis1](https://discourse.devontechnologies.com/u/enchiriadis1)\
**Post date:** [August 11, 2026, 4:38pm UTC](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454/10 "2026-08-11T16:38:10Z")

</div>

Hi Bluefrog,

Can’t describe it more specifically then in these two steps:

(1) There is an AppleScript which automates inside of DEVONthink the modification (tagging) of documents and send them via Mail to a defined mailadress.

(2) An external panel, a kind of backdrop-app, written in Swift, should start this AppleScript.

That’s it.  
For me the process is pretty clear. 🤷🏻

---

<div class="post-metadata">

**Author:** ![chrillek](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/chrillek/32/29340_2.png) [@chrillek](https://discourse.devontechnologies.com/u/chrillek)\
**Post date:** [August 11, 2026, 4:46pm UTC](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454/11 "2026-08-11T16:46:11Z")

</div>

No, this is a workflow that you implement to solve a problem which you do **not** describe. What is your girlfriend trying to achieve? That’s the question here.

---

<div class="post-metadata">

**Author:** ![enchiriadis1](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/e/a88e57/32.png) [@enchiriadis1](https://discourse.devontechnologies.com/u/enchiriadis1)\
**Post date:** [August 12, 2026, 6:49am UTC](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454/12 "2026-08-12T06:49:28Z")

</div>

![screenshot](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/3X/4/b/4b5d6a226ee3e4263362ae14fe5231906ffbb95f.jpeg)

Probably my English is not sufficient enough for making it clear?  
Try with an image.  
Purple: DEVONthink.  
Orange: Swift-UI.  
The Purple-coloured part works fine:  
Just selelect any Document from DT, start the (Apple)-Script, and this script does some interaction with the docs.

The orange part is independently from DT and newly written in Swift:  
The Button “Versand starten” is just a kind of “remote control”. It should trigger the START.scpt in DT’s Script-Menue. Nothing more. The script then will do everything else.  
Alternatively I tried storing the AppleScripts inside of the Swift-Bundle-Package.

However: Clicking in the “orange world” means loosing the Doc-Selection in the “purple world”.

If you know DB-Apps like MS-Access or Claris-FileMaker: Here you may create the UI, binding RecordSets underneath and modify those data with your self-made UI.  
My approach is similar to this.  
However: The missing binding to DEVONthink-Objects seems to be the border here.

---

<div class="post-metadata">

**Author:** ![chrillek](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/chrillek/32/29340_2.png) [@chrillek](https://discourse.devontechnologies.com/u/chrillek)\
**Post date:** [August 12, 2026, 1:11pm UTC](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454/13 "2026-08-12T13:11:29Z")

</div>

There’s definitely some kind of communication mismatch going on here. We’re asking you what your girlfriend wants to do and you keep explaining how you organize the code of which we still do not know what it’s supposed to do.

It’s like saying “I can’t buy plane tickets” again and again instead of answering the question “where do you want to go” – perhaps that town does not _have_ an airport, so a train might be more appropriate…

Just some final words from me:

- It seems that you need Swift-UI only to start a script by clicking on a button
- If that’s the case, you do not need Swift-UI at all
- Because you can simply show a button with AppleScript and act accordingly when it’s clicked. As I already said before and you chose to ignore or not read or whatever: [Insurmountable barrier between AppleScript (talking to DT) and a Swift-UI? - #4 by chrillek](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454/4)

The commands “displayAlert” and “displayDialog” are part of the Standard Additions and available to every AppleScript script (with JXA, you’d have to add a line of code to be able to use them). No, you cannot have an orange button that way. But how is that even remotely important?

 ![Bildschirmfoto 2026-08-12 at 15.01.41](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/3X/c/6/c6895bd874e5e455fc967a49dce10776ce0eb8c2.jpeg)

OTOH, if you want a _real_ UI (ie not only a button triggering a script), the standard AS means will not allow you to create that. There are libraries, I think, but I don’t know any details.

> [@enchiriadis1](#):
>
> DB-Apps like MS-Access or Claris-FileMaker: Here you may create the UI, binding RecordSets underneath and modify those data with your self-made UI

I’m aware of that. But that’s neither here nor there. If you need that kind of functionality, look at FileMaker or Nexus or whatever. I never got the hang of this kind of app, confuses the hell out of me. Trying to write a CRUD UI for DT (or whatever you’re planning to do) is re-inventing a wheel that will probably never turn well.

---

<div class="post-metadata">

**Author:** ![mbbntu](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/m/439d5e/32.png) [@mbbntu](https://discourse.devontechnologies.com/u/mbbntu)\
**Post date:** [August 12, 2026, 2:11pm UTC](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454/14 "2026-08-12T14:11:46Z")

</div>

There are also solutions like Keyboard Maestro and Better Touch Tool, which allow you to create palettes to do all sorts of things. There was a German-speaking user who went by my apfelworld who did some very interesting things with them.

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [August 12, 2026, 2:33pm UTC](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454/15 "2026-08-12T14:33:15Z")

</div>

You can also simply assign hotkeys in the system Keyboard settings or via an app like _CustomShortcuts_.

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [August 12, 2026, 2:38pm UTC](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454/16 "2026-08-12T14:38:27Z")

</div>

While it may be academically interesting to try to integrate with a SwiftUI button, I think you’re greatly overcomplicating this. You can accomplish this with a smart rule, batch process, or just the script and trigger it within DEVONthink with no external activator needed.

---

<div class="post-metadata">

**Author:** ![enchiriadis1](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/e/a88e57/32.png) [@enchiriadis1](https://discourse.devontechnologies.com/u/enchiriadis1)\
**Post date:** [August 12, 2026, 10:09pm UTC](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454/17 "2026-08-12T22:09:28Z")

</div>

Probably you are right.  
Custom Shortcuts or Keyboard Maestro: Not thought about before, but yes, this might work as well.

> While it may be academically interesting to try to integrate with a SwiftUI button, I think you’re greatly overcomplicating this.

Meanwhile I agree. Last week, in my eyes the realisation of such an “remote control” seems easy. Obviously I underestimated some side effects.  
However: On the way I learned about Swift as well as about AppleScript. That’s the academical part.  
And learned about an UI-approach that finally doesn’t work. My practical insight.

So, at least: Suggest to cut down the discussion here.  
Thanks for your thoughts, examples, ideas. Has been a lecture in “Over-Engineering”.

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [August 13, 2026, 2:27am UTC](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454/18 "2026-08-13T02:27:24Z")

</div>

You’re welcome and no problem. Trust me, I have had my fair share of _“Wouldn’t it be cool if…………?”_ later to realize I made things more complex than needed. Part of the fun and beauty of automation is when you distill things down to more elegant forms. And learning new things is a good thing 🙂

---

<div class="post-metadata">

**Author:** ![stratadata](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/stratadata/32/35651_2.png) [@stratadata](https://discourse.devontechnologies.com/u/stratadata)\
**Post date:** [August 13, 2026, 2:46am UTC](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454/19 "2026-08-13T02:46:49Z")

</div>

I think even built in accessibility tools allow you to create a buton panel to do things (launch scripts/shortcuts?) – I haven’t explored it.

Sean

---

<div class="post-metadata">

**Author:** ![Jack1228](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/jack1228/32/39542_2.png) [@Jack1228](https://discourse.devontechnologies.com/u/Jack1228)\
**Post date:** [August 13, 2026, 7:30am UTC](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454/20 "2026-08-13T07:30:22Z")

</div>

I’ve run into that exact situation myself, and I completely agree with that feeling.

[Next page](https://discourse.devontechnologies.com/t/insurmountable-barrier-between-applescript-talking-to-dt-and-a-swift-ui/87454.md?page=2)
