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.

