# Fix Permissions for Executing AppleScript in MIDI Translator Pro

**URL:** <https://forum.bome.com/t/fix-permissions-for-executing-applescript-in-midi-translator-pro/6669>\
**Category:** Tips & Tricks\
**Tags:** midi-translator, applescript\
**Created:** [December 10, 2023, 4:18am UTC](https://forum.bome.com/t/fix-permissions-for-executing-applescript-in-midi-translator-pro/6669 "2023-12-10T04:18:21Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Helfried.Wildenhain](https://forum.bome.com/user_avatar/forum.bome.com/helfried.wildenhain/32/5056_2.png) [@Helfried.Wildenhain](https://forum.bome.com/u/Helfried.Wildenhain)\
**Post date:** [December 10, 2023, 4:18am UTC](https://forum.bome.com/t/fix-permissions-for-executing-applescript-in-midi-translator-pro/6669/1 "2023-12-10T04:18:21Z")

</div>

## Terminal commands to fix AppleScript permissions for MIDI Translator Pro.

I found them [here](https://forums.macrumors.com/threads/how-to-grant-automation-access-in-bigsur.2395271/).

They work by editing directly the TCC database, which is used by macOS to store which application has special permissions.

> **Disclaimer** : use these commands at your own risk. They directly modify internal MacOS settings.  
> **Tested on MacOS 13 Ventura and MacOS 14 Sonoma**

### Step 1: Before editing the TCC database, back it up. Just in case.

```auto
cp ~/Library/Application\ Support/com.apple.TCC/TCC.db ~/TCC-Backup.db

```

> If you get the error `Error: unable to open database "/Library/Application Support/com.apple.TCC/TCC.db": authorization denied` and any other file operations on the `TCC.db` file all fail, your terminal app _itself_ is missing the full disk access permission required to read the DB file. i.e. I can’t run the command from vscode but it works from iTerm because that’s how my permissions are set up. That’s addressed in [rdamazio’s answer](https://apple.stackexchange.com/a/383651/325877).  
> From [StackExchange](https://apple.stackexchange.com/a/398389).

### Step 2: Add System Events Automation permissions for MIDI Translator Pro.

If you’re on macOS 13 Ventura:

```auto
sudo sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "insert into access values ('kTCCServiceAppleEvents', 'com.bome.miditranslator.pro', 0, 2, 3, 1, '??', NULL, 0, 'com.apple.systemevents', '??', NULL,1571402310);"

```

If you’re on macOS 14 Sonoma:

```auto
sudo sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "insert into access values ('kTCCServiceAppleEvents', 'com.bome.miditranslator.pro', 0, 2, 4, 1, '??', NULL, 0, 'com.apple.systemevents', '??', 0,1732229701,NULL,NULL,'UNUSED',0);"

```

> If you get `Error: stepping, UNIQUE constraint failed`, delete the entry first using the **delete** command below.

### Step 3: Restart MIDI Translator Pro. If that does not help, restart the computer.

And voila, now it works! I now have the necessary entries under ‘Security → Automation’ and MIDI Translator Pro executes the scripts perfectly!

You can repeat the command with `com.apple.system` replaced with `com.apple.finder` to add permissions to send AppleScript commands to Finder.

### Other Commands

**Read the current status** of the automation permissions:

```auto
sudo sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "select * from access where service='kTCCServiceAppleEvents';"

```

**Delete the permissions** :

```auto
sudo sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "delete from access where client like 'com.bome.miditranslator.pro';"

```

Thanks for your help! I am so glad that everything is working now.

---

<div class="post-metadata">

**Author:** ![FlorianBome](https://forum.bome.com/user_avatar/forum.bome.com/florianbome/32/2367_2.png) [@FlorianBome](https://forum.bome.com/u/FlorianBome)\
**Post date:** [December 10, 2023, 10:58am UTC](https://forum.bome.com/t/fix-permissions-for-executing-applescript-in-midi-translator-pro/6669/3 "2023-12-10T10:58:48Z")

</div>

Hi Helfried,  
that’s fantastic! Thanks for sharing. Your sqlite command worked fine for me.

I had lost myself in research, too, but I only got as far as _removing_ the TCC entries using the `tccutil` tool. But then I could not get the expected behavior that MacOS asks for the permissions when the respective AppleScript is invoked by MT Pro. That seems to be a common problem on MacOS. Once the permission is denied, or removed using tccutil, you are not asked again.

I have cleaned your post a little bit and added a disclaimer and backup. I hope you don’t mind.  
Do you have a source where you found the info about the sqlite DB?

---

<div class="post-metadata">

**Author:** ![Helfried.Wildenhain](https://forum.bome.com/user_avatar/forum.bome.com/helfried.wildenhain/32/5056_2.png) [@Helfried.Wildenhain](https://forum.bome.com/u/Helfried.Wildenhain)\
**Post date:** [December 10, 2023, 2:22pm UTC](https://forum.bome.com/t/fix-permissions-for-executing-applescript-in-midi-translator-pro/6669/5 "2023-12-10T14:22:56Z")

</div>

thanks for cleaning up, it looks better like this 🙂  
This was the link that finally brought the solution after a long search:

> **[How to Grant Automation Access in bigsur](https://forums.macrumors.com/threads/how-to-grant-automation-access-in-bigsur.2395271/)**
>
> DropDMG need Granting Automation Access , in Monterey everything is ok, but in the bigsur, Nothing is displayed in the Privacy ‣ Automation,I can't use this software, what should I do to?
> \-------------------------------------------
> To Grant...

It’s about another app, similar problems.  
After inserting the corresponding IDs for ‘com.bome.miditranslator.pro’ and ‘com.apple.systemevents’  
it worked.  
Like you, I had no success with the tccutil commands before.

---

<div class="post-metadata">

**Author:** ![FlorianBome](https://forum.bome.com/user_avatar/forum.bome.com/florianbome/32/2367_2.png) [@FlorianBome](https://forum.bome.com/u/FlorianBome)\
**Post date:** [November 21, 2024, 11:05pm UTC](https://forum.bome.com/t/fix-permissions-for-executing-applescript-in-midi-translator-pro/6669/6 "2024-11-21T23:05:43Z")

</div>

I have updated the solution above with the correct command for macOS 14 Sonoma.  
I haven’t tried on Sequoia yet.

 ![image](https://forum.bome.com/uploads/default/original/2X/e/eb40597e8f98bbf08fc368fe23b1c68775a12c2e.jpeg)

---

<div class="post-metadata">

**Author:** ![jordikt](https://forum.bome.com/user_avatar/forum.bome.com/jordikt/32/2878_2.png) [@jordikt](https://forum.bome.com/u/jordikt)\
**Post date:** [November 27, 2024, 4:35pm UTC](https://forum.bome.com/t/fix-permissions-for-executing-applescript-in-midi-translator-pro/6669/7 "2024-11-27T16:35:52Z")

</div>

It’s not working for me on Sonoma 14.7.1

When I try to do the backup, I get the error ‘ **cp: /Users/jordi/Library/Application Support/com.apple.TCC/TCC.db: Operation not permitted** ’:

 ![Captura de pantalla 2024-11-27 a les 9.24.06](https://forum.bome.com/uploads/default/original/2X/2/22bd0e5243bc08a5366626c0e573f52fb1bad281.png)

When I try to write the TCC.db, I get the error ‘ **unable to open database ‘/Users/jordi/Library/Application Support/com.apple.TCC/TCC.db’: authorization denied** ’ after entering the password:

 ![Captura de pantalla 2024-11-27 a les 9.28.04](https://forum.bome.com/uploads/default/original/2X/7/7d9efc3189e167b0b41ab51a3dd685724c69ffb4.png)

I have set write permissions for the TCC.db file and its container folder, but still not working.

---

<div class="post-metadata">

**Author:** ![FlorianBome](https://forum.bome.com/user_avatar/forum.bome.com/florianbome/32/2367_2.png) [@FlorianBome](https://forum.bome.com/u/FlorianBome)\
**Post date:** [November 27, 2024, 5:41pm UTC](https://forum.bome.com/t/fix-permissions-for-executing-applescript-in-midi-translator-pro/6669/9 "2024-11-27T17:41:23Z")

</div>

From [StackExchange](https://apple.stackexchange.com/a/398389):

> If you get the error `Error: unable to open database "/Library/Application Support/com.apple.TCC/TCC.db": authorization denied` and any other file operations on the `TCC.db` file all fail, your terminal app _itself_ is missing the full disk access permission required to read the DB file. i.e. I can’t run the command from vscode but it works from iTerm because that’s how my permissions are set up. That’s addressed in [rdamazio’s answer](https://apple.stackexchange.com/a/383651/325877).

---

<div class="post-metadata">

**Author:** ![jordikt](https://forum.bome.com/user_avatar/forum.bome.com/jordikt/32/2878_2.png) [@jordikt](https://forum.bome.com/u/jordikt)\
**Post date:** [November 29, 2024, 10:29am UTC](https://forum.bome.com/t/fix-permissions-for-executing-applescript-in-midi-translator-pro/6669/10 "2024-11-29T10:29:53Z")

</div>

Thanks.

Terminal commands for Sonoma works like a charm. I have added Automation permissions for system events and other applications successfully.

---

<div class="post-metadata">

**Author:** ![FlorianBome](https://forum.bome.com/user_avatar/forum.bome.com/florianbome/32/2367_2.png) [@FlorianBome](https://forum.bome.com/u/FlorianBome)\
**Post date:** [November 29, 2024, 10:48am UTC](https://forum.bome.com/t/fix-permissions-for-executing-applescript-in-midi-translator-pro/6669/11 "2024-11-29T10:48:47Z")

</div>

That’s great. Finally!

Now back to your other issue re: virtual desktops…

---

<div class="post-metadata">

**Author:** ![jordikt](https://forum.bome.com/user_avatar/forum.bome.com/jordikt/32/2878_2.png) [@jordikt](https://forum.bome.com/u/jordikt)\
**Post date:** [November 29, 2024, 10:53am UTC](https://forum.bome.com/t/fix-permissions-for-executing-applescript-in-midi-translator-pro/6669/12 "2024-11-29T10:53:52Z")

</div>

Yes, I hope you can find a solution for that problem.

Thanks for your help and efforts!!

---

<div class="post-metadata">

**Author:** ![SteveC](https://forum.bome.com/user_avatar/forum.bome.com/stevec/32/8250_2.png) [@SteveC](https://forum.bome.com/u/SteveC)\
**Post date:** [May 11, 2025, 3:25pm UTC](https://forum.bome.com/t/fix-permissions-for-executing-applescript-in-midi-translator-pro/6669/13 "2025-05-11T15:25:59Z")

</div>

This is what worked for me. I’m on Sequoia 15.4.1.

First, allow full disk access for terminal in System and Security

Then the following commands from Terminal

```auto
sudo sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "delete from access where client like 'com.bome.miditranslator.pro';"

sudo sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "insert into access values ('kTCCServiceAppleEvents', 'com.bome.miditranslator.pro', 0, 2, 4, 1, '??', NULL, 0, 'com.apple.systemevents', '??', 0,1732229701,NULL,NULL,'UNUSED',0);"

```

With that said, this allows only access to System Events so if another application isn’t set to allow access directly from Bome MIDI Translator Pro then some things may not work.

For instance, I have Keyboard Maestro and it doesn’t allow Bome MIDI Translator Pro to access its variables.

```auto
tell application "Keyboard Maestro Engine"
	set myVariable to getvariable "Hello"
end tell

```

Within Script Editor it works but in Bome MIDI Translator Pro it gives me this:

```auto
: OUT 0.0 ERROR executing AppleScript: action_0_0(): error -1743: Not authorized to send Apple events to Keyboard Maestro Engine.

```

I think there would need to be some way within Keyboard Maestro to allow Bome MIDI Translator Pro .

Steve Caldwell  
Bome Customer Care

* * *
_Also available for paid consulting services: bome@sniz.biz_

---

<div class="post-metadata">

**Author:** ![harald.ring](https://forum.bome.com/letter_avatar_proxy/v4/letter/h/e9c0ed/32.png) [@harald.ring](https://forum.bome.com/u/harald.ring)\
**Post date:** [December 13, 2025, 4:04pm UTC](https://forum.bome.com/t/fix-permissions-for-executing-applescript-in-midi-translator-pro/6669/14 "2025-12-13T16:04:46Z")

</div>

sudo sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db ‘insert into access values (“kTCCServiceAppleEvents”, “com.bome.miditranslator.pro”, 0, 2, 4, 1, “??”, NULL, 0, “com.apple.systemevents”, “??”, 0,1732229701,NULL,NULL,“UNUSED”,0);’

Hat bei mir auch unter sequoia funktioniert, danke!

---

<div class="post-metadata">

**Author:** ![werchterq](https://forum.bome.com/user_avatar/forum.bome.com/werchterq/32/7966_2.png) [@werchterq](https://forum.bome.com/u/werchterq)\
**Post date:** [December 21, 2025, 3:14pm UTC](https://forum.bome.com/t/fix-permissions-for-executing-applescript-in-midi-translator-pro/6669/15 "2025-12-21T15:14:39Z")

</div>

> [@SteveC](#):
>
> I think there would need to be some way within Keyboard Maestro to allow Bome MIDI Translator Pro .

I had success with this command on macOS Tahoe (use at your own risk)

```auto
sudo sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "insert into access values ('kTCCServiceAppleEvents', 'com.bome.miditranslator.pro', 0, 2, 4, 1, '??', NULL, 0, 'com.stairways.keyboardmaestro.editor', '??', 0,1732229701,NULL,NULL,'UNUSED',0);"

```

Notice value “com.stairways.keyboardmaestro.editor” for column “indirect\_object\_identifier“ in TCC.db.

* * *

_Consultant Lighting Automation_
