Change focus mode to Work with applescript

Is here someone, who could provide me a simple script? My goal is to turn on the Work focus mode with applescript, or with applescript through siri shortcuts.

(the main thing is, i need the script code definetly)

I don’t have time to prototype this today but:

  1. I believe you can change the Focus state using a shortcut.

  2. You can run shortcuts from the command line using the shortcuts tool.

  3. You can run command-line tools from AppleScript using do shell script.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Change focus mode to Work with applescript
 
 
Q