bdkjones / CodeKit2

CodeKit 2 Beta
98 stars 4 forks source link

[Request] AppleScript: ability to write to the Log view #615

Open chris-scheurle opened 8 years ago

chris-scheurle commented 8 years ago

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
bdkjones commented 8 years ago

This is a good idea for an AppleScript API enhancement. I'll implement it in 3.0.

chris-scheurle commented 8 years ago

Great! :smile: