Replies: 1 comment 1 reply
-
|
Currently, if a UNIX script-based CotEditor script writes text to stderr, it is shown in CotEditor’s console. Please give it a try. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
First of all, I'd like to thank the Author of CotEditor for such an amazing tool as CotEditor – considering the way it can be scripted, I routinely can't believe it's just free of charge. Amazing!
Here I'd like to come up with idea for one additional, small feature to CLI tool that is bundled with the app – a flag that, if provided, would pass the input not to the opened document or to new document, but to the CotEditor's Console.
Quite often I work on some configuration files in CotEditor which I test with scripts added to the script menu. Console is a good place for logging the results which is currently possible with AppleScript, but in my case it often leads to situation when I start with AppleScript, then pass to shell environment and then again pass to another AppleScript – which can be problematic if the expected result has a form of i.e. JSON. Quick log to the app's console with a CLI command would save a lot of unnecessary actions after the most important part of the test.
I hope that implementing such a feature might appear interesting for implementation. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions