Skip to content

Instantly share code, notes, and snippets.

@stevengonsalvez
Forked from supersational/claude-autoclicker.sh
Created December 23, 2024 14:36
Show Gist options
  • Save stevengonsalvez/5269f555e9e589c616afabc5225b94bd to your computer and use it in GitHub Desktop.
Save stevengonsalvez/5269f555e9e589c616afabc5225b94bd to your computer and use it in GitHub Desktop.
Claude Autoclick "Allow Tool"
while true; do
osascript -e '
tell application "System Events"
if exists process "Claude" then
tell process "Claude"
if exists button "Allow for This Chat" of group 2 of group 1 of group 2 of group 1 of UI element "Claude" of group 1 of group 1 of group 1 of group 1 of window "Claude" then
click button "Allow for This Chat" of group 2 of group 1 of group 2 of group 1 of UI element "Claude" of group 1 of group 1 of group 1 of group 1 of window "Claude"
log "clicked allow button"
end if
end tell
end if
end tell
'
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment