Applescript doesn't run

Hello everyone,
I’m working on a very old project of mine that was built in Xojo 2017 and that works until Xojo 2020 with a few changes. It needs to send commands to control Photoshop via Applescript. Previously, I would simply drag the Applescript to the Xojo project interface and send it to fire by double-clicking on a list or buttons. It turns out that I’m testing it on XOJO 2024 and simply no Applescript fires. Can anyone tell me how to do this now because I’m starting to port my old applications to newer systems and I need this to use on systems other than Mojave 10.14, which I’m running today.

I appreciate any help.

As always when something has run before and isn’t running now it’s a permission issue. AppleScript needs to ask the user if he really wants to run the script. You need a plist with a reason. And then you need to check if the user agreed. This was discussed here multiple times. MBS has an example for NSAppleScriptMBS.

Hi Beatrix,
Thank you very much for the information, I’ve seen that this really happens, I’ll try to solve it in a simpler way without external plugins.