Bugs

AppleScript set the clipboard hangs and times out after 8 seconds

2mo agoCompleted

I noticed what seems to be a bug with AppleScript actions.

I created a simple “Copy Selected Text” action, but it hangs for 8 seconds and then fails with:

“AppleScript timed out after 8 seconds”

The script is just:

set selectedText to "{{selected_text}}" set the clipboard to selectedText return selectedText

I tested it a bit and it looks like set the clipboard to ... is what causes the timeout. If I replace it with pbcopy via do shell script, it runs instantly.

For example, this works without any delay:

do shell script "printf %s " & quoted form of "{{selected_text}}" & " | pbcopy" return "OK"

So it seems like the AppleScript clipboard command may be getting stuck inside ActionClip.

I attached a few screenshots as well. Is this a known issue, or am I missing some macOS permission/setup?

0 comments

  1. Advait Vaidya marked this as Completed2mo ago
  2. Advait Vaidya marked this as In Progress2mo ago