Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chris-scheurle opened this issue May 21, 2016 · 2 comments
Open

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

chris-scheurle opened this issue May 21, 2016 · 2 comments

Comments

@chris-scheurle
Copy link

chris-scheurle commented May 21, 2016

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
Copy link
Owner

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

@chris-scheurle
Copy link
Author

Great! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants