Claude Code and Xojo?

Inspired by this great idea, I’ve made the following changes:
I assigned the shortcut Command+Shift+R to the “Revert to Saved” menu in Xojo’s settings.
I also modified my claude code custom command, xojo.md, to execute Command+Shift+R and press return key.

---
allowed-tools: Bash(open:*),Bash(osascript:*)
description: "Operates Xojo in the mode specified by the argument (open, run, build)."
---

# Argument open, or no argument
In Bash, run "open -a Xojo *.xojo_project"

# Argument run
In Bash, run the following:
osascript -e 'tell application "Xojo" to activate' -e 'delay 0.1' -e 'tell application "System Events" to tell process "Xojo" to keystroke "r" using {command down, shift down}' -e 'delay 0.1' -e 'tell application "System Events" to tell process "Xojo" to keystroke return'
osascript -e 'tell application "Xojo" to activate' -e 'delay 1' -e 'tell application "System Events" to tell process "Xojo" to keystroke "r" using command down'

# Argument build
In Bash, run the following:
osascript -e 'tell application "Xojo" to activate' -e 'delay 0.1' -e 'tell application "System Events" to tell process "Xojo" to keystroke "r" using {command down, shift down}' -e 'delay 0.1' -e 'tell application "System Events" to tell process "Xojo" to keystroke return'
osascript -e 'tell application "Xojo" to activate' -e 'delay 1' -e 'tell application "System Events" to tell process "Xojo" to keystroke "b" using {command down, shift down}'