cmdpost -- Command line interface to CommandPost.app
cmdpost [-i | -s | -c code] [-r] [-n]
Runs code from within CommandPost, and prints the results. The given code is passed to "hs.ipc.
handler" which normally executes it as plain Lua code, but may be overridden to do some custom
When no args are given, -i is implied.
-i Runs in interactive-mode; uses each line as code . Prints in color unless otherwise speci-
-c Uses the given argument as code
-r Forces CommandPost to interpret code as raw Lua code; the function "hs.ipc.handler" is not
-n When specified, interactive-mode does not use colors.
The cmdpost utility exits 0 on success, and >0 if an error occurs.