Created
March 27, 2026 02:03
-
-
Save mindon/706514bd2819c106b721c41820a52049 to your computer and use it in GitHub Desktop.
AppleScript to take a photo with Photo Booth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- 拍照片 | |
| tell application "Photo Booth" to activate | |
| delay 1 | |
| tell application "System Events" | |
| -- click radio button 2 of radio group 1 of group 1 of window 1 | |
| set frontmost of process "Photo Booth" to true | |
| keystroke return using {option down} -- option + enter | |
| end tell | |
| tell application "Photo Booth" to quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment