I would like to trigger the privileged script but so it can get a parameter of which modifier keys are held down.
Values of modifier keys:
| Modifier |
Value |
| Shift |
1 |
| Option |
2 |
| Ctrl |
4 |
| Cmd |
8 |
So if all are held down, the script is passed the value 15, and so on.
I would expect the value to just be passed as the first argument to the script, so the script can decide if modifier keys are important.