Right now, in my hooks, I usetell application "CodeKit" to display alert "..."to display errors and warnings, should anything go wrong.
But it would be much cooler, if those messages just showed up in the normal log, instead of interrupting my work with dialog boxes. Something like:
tell application "CodeKit"
-- type: error/warning/success
-- return value: 0 on success, 1 if no project/framework contained the path you supplied, 2 if a problem occurred
if ( log error "..." for path "..." ) > 0 then
-- display a dialog, instead
display alert "..."
end if
end tell
Right now, in my hooks, I use
tell application "CodeKit" to display alert "..."
to display errors and warnings, should anything go wrong.But it would be much cooler, if those messages just showed up in the normal log, instead of interrupting my work with dialog boxes. Something like: