macosapplescript

AppleScript - open Screenshots app (Mac mini M4)


I need to open the Screenshots application using AppleScript. I have an Apple Mac mini M4.

My code does nothing. No error.

tell application "System Events"
    keystroke "5" using {command down, shift down}
end tell

Solution

  • To open the Screenshots application, run it:

    run application "Screenshot"
    

    The Screenshots application is in the Utilities folder of your Applications folder.