MTMR: Button doesn't trigger action

{ "type": "staticButton", "align": "left", "width": 44, "image": { "base64": "D0...BlaBla" }, "action": "appleScript", "actionAppleScript": { "inline": "tell application \"Google Chrome\"\rset minimized of window 1 to true\rend tell" }, },

I gave MTMR all permissions it needed but nevertheless nothing happens when I try pressing this Button. When i run the script in the Apple Script editor everything works fine and Chrome get’s minimized. Thank your for your support 😃

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Comments: 31 (16 by maintainers)

Most upvoted comments

Same problem here but i found a workaround by using bash to execute the apple script for me.

{
          "type": "staticButton",
          "action": "shellScript",
          "executablePath": "/bin/bash",
          "shellArguments": [
            "-c", "osascript -e 'tell application \"Microsoft Teams\" to activate'"
          ],
          "title": "Teams",
}