Xojo Conferences
MBSOct2019CologneDE

« Three weeks till year… | Home | LiteSync and Xojo »

Ask for permissions to control applications with AppleScript in FileMaker


MacOS 10.14 Mojave tightens control on applications who wish to control other applications via Apple Script or Apple Events. So you may need to use our new Applescript.DeterminePermissionToAutomateTarget function in MBS FileMaker Plugin to ask for permissions.



The user can decide whether they allow or block access for your application. The dialog comes only once and if you need, the user can do the checkbox later in the privacy settings. Or reset the settings via Terminal with "tccutil reset AppleEvents" command for all applications.

New function will be available in 8.4pr4 in the next days. If you need it today, just email us.

PS: You can do the same in Xojo with our NSAppleScriptMBS.DeterminePermissionToAutomateTarget function.

PPS: You may also need for runtimes to add entitlement in code signing with com.apple.security.automation.apple-events item. Plugin and app must be signed by same team ID.
13 12 18 - 10:27
four comments

Thank you for making this function available! It has already helped us!
Stephen - 07 01 19 - 22:03

Can you explain more this one line? I am using a Runtime and my application is codeisgned. I needed to codesign WITHOUT the —options runtime flags to get it to work though. Not sure if what you suggest below is what I am needing to do.

PPS: You may also need for runtimes to add entitlement in code signing with com.apple.security.automation.apple-events item. Plugin and app must be signed by same team ID.
Stephen - 07 01 19 - 22:08

code signing with —options runtime flag is needed for notarized apps.
The newer runtime signing script from use (included in plugin download) to does now use that flag.

You may not need notarization, so you could maybe leave it away.
Christian Schmitz - 07 01 19 - 22:20

I have found that if I use the —options runtime flag, I am able to notarize the app. But when I notarize it, the Apple Events trigger no longer works on those systems that haven’t previously had this set up. I wasn’t aware of the com.apple.security.automation.apple-events item so I wasn’t sure if there was a way to notarize AND to have the automation features work using this.
Stephen - 08 01 19 - 08:02


  
Remember personal info?

Emoticons / Textile


Notify:
Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.