The following X-CallBack-URL schemes can be used in Code Editor:

New

Creates a new file. If one exists, a file with a unique name will be created.

coda://x-callback-url/new?name=foo.txt&text=bar

Append

Append text to a file, creating it if necessary

coda://x-callback-url/append?name=foo.txt&text=bar

Replace

Replaces the contents of a file, creating it if necessary

coda://x-callback-url/replace?name=foo.txt&text=bar

All three support the following arguments:

name
the filename (if not included, creates a unique filename)
path
the directory path (if not included, defaults to Documents)
text
the text to append/replace with

This article was last updated on October 4, 2019