Applescript Dialog Toolkit "disallowed"

109 views
Skip to first unread message

Zax

unread,
Dec 10, 2024, 3:35:45 AM12/10/24
to BBEdit Talk
Hello,

When trying to display an Applescript alert built with Dialog Toolkit Plus 1.1.3 (or 1.1.2), I have an alert telling me "A scripting error has occured. User interaction disallowed."

My script works fine when launched from the script editor but I have this error when I launch it from BBedit 15.1.2.

I'm using Sequoia 15.1.1. Is it a security problem?

Rick Gordon

unread,
Dec 10, 2024, 5:27:09 AM12/10/24
to bbedit

In System Settings, try adding BBEdit to Privacy & Security > Automation.

Rick Gordon


From: Zax <issa...@gmail.com>
To: BBEdit Talk <bbe...@googlegroups.com>
Date: Tue, Dec 10, 2024 1:35:44AM -0700
Subject: Applescript Dialog Toolkit "disallowed"
--
This is the BBEdit Talk public discussion group. If you have a feature request or believe that the application isn't working correctly, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Mastodon: <https://mastodon.social/@bbedit>
-

_______________________________________
RICK GORDON
_______________________________________

EMAIL: ri...@rickgordon.com
WWW: www.shelterpub.com

Rick Gordon

unread,
Dec 10, 2024, 5:30:22 AM12/10/24
to bbedit

Also to Privacy & Security > Full Disk Access.

Rick Gordon


From: Rick Gordon <li...@rickgordon.com>
To: bbedit <bbe...@googlegroups.com>
Date: Tue, Dec 10, 2024 3:26:55AM -0700
Subject: Applescript Dialog Toolkit "disallowed"

In System Settings, try adding BBEdit to Privacy & Security > Automation.

Rick Gordon


From: Zax <issa...@gmail.com>
To: BBEdit Talk <bbe...@googlegroups.com>
Date: Tue, Dec 10, 2024 1:35:44AM -0700
Subject: Applescript Dialog Toolkit "disallowed"
Hello,

When trying to display an Applescript alert built with Dialog Toolkit Plus 1.1.3 (or 1.1.2), I have an alert telling me "A scripting error has occured. User interaction disallowed."

My script works fine when launched from the script editor but I have this error when I launch it from BBedit 15.1.2.

I'm using Sequoia 15.1.1. Is it a security problem?
--
This is the BBEdit Talk public discussion group. If you have a feature request or believe that the application isn't working correctly, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Mastodon: <https://mastodon.social/@bbedit>
-
--
This is the BBEdit Talk public discussion group. If you have a feature request or believe that the application isn't working correctly, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Mastodon: <https://mastodon.social/@bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bbedit/0f8af137-72db-40c6-9307-e506efebe984%40rickgordon.com.

Zax

unread,
Dec 10, 2024, 8:15:28 AM12/10/24
to BBEdit Talk
Thank you for your reply.
BBEdit has acces to Automation in Finder and System Events
I just added BBEdit to Privacy & Security > Full Disk Access but I still have the same error. It's a very basic error dialog with a single "OK" button (not the well known MacOS security alert). In fact, I don't know what is raising this alert, MacOS or BBEdit.

jj

unread,
Dec 12, 2024, 4:14:32 AM12/12/24
to BBEdit Talk
This error is thrown by Dialog Toolkit's code when an error is returned by a call to AppleScript-Objc AEInteractWithUser():
"Error -1713 in '/Applications/BBEdit.app/': User interaction disallowed".

This error (errAENoUserInteraction = -1713, /* no user interaction is allowed */)
is probably due to some sandbox permission restriction.

In conclusion Dialog Toolkit might not be compatible with BBEdit.

For an alternative solution you could check SwiftDialog: https://github.com/swiftDialog/swiftDialog

HTH,

Jean Jourdain

Zax

unread,
Dec 13, 2024, 3:49:37 AM12/13/24
to BBEdit Talk
Thank you, I'll try with SwiftDialog.
I used Dialog Toolkit with an old iTunes and it worked fine (though its syntax wasn't very clear).
Reply all
Reply to author
Forward
0 new messages