How to let iPaste work on macOS Mojave 10.14

Background

Recently, after upgrading to macOS Mojave 10.14, some users may have problems clicking the iPaste history but not being able to paste it into the target program. Why and how to solve it?

Since iPaste is a sandboxed app, you cannot directly paste the clipboard history into the target app. Therefore, iPaste uses the system Script script to simulate the ⌘V shortcut to auto-paste.

It worked fine before, but macOS Mojave 10.14 imposes stricter restrictions on scripts, making the current strategy likely to fail. How to solve it? Please see the next introduction.

How to use iPaste on macOS Mojave

1. Try pasting in iPaste and save the script as prompted.

2. Try pasting again in iPaste, where iPaste will try to call the script. The macOS system will have the following prompts:

That is, macOS will let you confirm if iPaste is allowed to call the script. Naturally, you need to click OK to confirm.

If you have previously disabled it, you need to open the system preferences System Preferences.app:

Then click Security & Privacy, Privacy, Automation, click the lock in the lower left corner, enter the password and unlock. Then select System Events under iPaste:

3. Continue to try pasting, where iPaste will call the script and try to send the ⌘V shortcut. The macOS system will have the following prompts:

That is, macOS will let you confirm if iPaste is allowed to send the ⌘V shortcut. Click on Open System Preferences (if you click Deny, you can open System Preferences.app manually), then click on ‘Security & Privacy, thenPrivacy, thenAccessibility`, click on the lock in the lower left corner and enter the password. After unlocking. Then select iPaste on the right:

4. Try to paste again in iPaste, it should be fine; you’re done.

Once the setup is complete, you don’t need to set it up again. As always, please continue to be efficient.