Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

LuizSiqueiraNeto

macrumors newbie
Original poster
Feb 16, 2021
4
0
I'm trying to run an Applescript that centers the window with focus. The shortcut works well, but when I try to use voice command with Siri a "System Event" error occurs, apparently Siri does not have access authorization.

Someone has already seen this problem.

Captura de Tela 2021-11-09 às 10.38.47_Easy-Resize.com.jpg

Translation of the error from Portuguese to English: I'm sorry, there was a problem. Shortcuts say: "System Events got a Error: Shortcuts is an assistive access no Allowed."
 
I'm having the same problem, Siri doesn't have correct privileges to run applescripts. There's another similar problem when running shell scripts. Scripts do work when running from Shortcuts.app but fails to run from voice commands. There's a way to bypass this error by creating another shortcut to run a shortcut, however this is an ugly solution. Anyone figured a better way to do it?

Also this bug causes another issue: https://discussions.apple.com/thread/253398014
After getting the error message, lsd process is stuck and causes high CPU usage until you quit Shortcuts.app
 
Last edited:
  • Like
Reactions: LuizSiqueiraNeto
I'm having the same problem, Siri doesn't have correct privileges to run applescripts. There's another similar problem when running shell scripts. Scripts do work when running from Shortcuts.app but fails to run from voice commands. There's a way to bypass this error by creating another shortcut to run a shortcut, however this is an ugly solution. Anyone figured a better way to do it?

Also this bug causes another issue: https://discussions.apple.com/thread/253398014
After getting the error message, lsd process is stuck and causes high CPU usage until you quit Shortcuts.app
can you share how to use the recursive shortcut within shortcut, because i tried calling a shortcut to run another shortcut that runs a python script and it still doesn't have privilege, i can run everything fine though from the shortcut app not siri.
 
  • Like
Reactions: LuizSiqueiraNeto
Create a new shortcut (example "MyWorkingShortcut"), and add terminal command "shortcuts run MyNotWorkingShortcut". This executes a shortcut in the new process, not the one that Siri is using, and doesn't fail to run MyNotWorkingShortcut.

Siri->MyWorkingShortcut - works
Siri->MyNotWorkingShortcut - doesn't work

Both shortcuts execute the same, but one doesn't fail when you run it from Siri voice commands.

MyNotWorkingShortcut can contain applescripts, terminal commands, or other stuff that normally fails because of this bug.

It's not recursive, it's another shortcut, although it is probably possible to do it in single shortcut though passing parameters as command line arguments (i haven't tried) but you probably got the idea. If there's no way to pass parameters via command line you could try to write to temporary files or clipboard, there's definitely should be a way, i don't have such wrapper and am a little bit lazy to make one, sorry. Maybe someone manages to make one. You've got all the info needed in this post. Don't forget to share here, if you do.
 
Last edited:
  • Like
Reactions: LuizSiqueiraNeto
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.