Thanks to Christian Seel for original post on how to do this.
On my setup — Macbook Pro running OS X 10.9.4 and Coda 2.0.14 —the key command to publish with Coda is slightly different than he describes. Instead of command + control, it’s command + option. So the final Hook should look like this:
delay 1
tell application "Coda 2" to activate
tell application "System Events"
keystroke "p" using {command down, option down}
end tell
To learn more about the full setup:
Recent Posts