I thought adding a simple line alias cot='open -a CotEditor' to ones terminal's config file works already well and it's enough. Received a request for command-line tool enables open or pipe contents via command-line. Rlist, wlist, xlist = lect(read_set, write_set, ) Stdout, stderr = self._communicate_with_select(input)įile "/System/Library/Frameworks/amework/Versions/2.7/lib/python2.7/subprocess.py", line 1512, in _communicate_with_select Stdout, _ = p.communicate(script.encode('utf-8'))įile "/System/Library/Frameworks/amework/Versions/2.7/lib/python2.7/subprocess.py", line 799, in communicateįile "/System/Library/Frameworks/amework/Versions/2.7/lib/python2.7/subprocess.py", line 1411, in _communicate Launch CotEditor, but not open a document window.įile "/usr/local/bin/cot", line 269, in mainįile "/usr/local/bin/cot", line 139, in launchįile "/usr/local/bin/cot", line 122, in tellįile "/usr/local/bin/cot", line 90, in run_osascript.This change adds the persistent execution mode with OSAScript, whichĬompiles scripts only once but executes them inside the sandbox. However, NSUserAppleScriptTask has a performance issue because itĬompiles a script and spawns a separate process every time the script Scripts and the only way to execute them outside of the sandbox. NSUserAppleScriptTask is the recommended way to execute user-supplied
Ĭhangeset Description Add persistent mode for AppleScript scripts (4d841f4) The execution model can be specified with the key CotEditorExecutionModel in Contents/ist as scripting hook. In this mode, the instance of OSAScript is initiated only once and execute the script without spawning the separate process as NSUserAppleScriptTask does. The thing I want to be introduced is PersistentOSAScript in 4d841f4. To make the plugin works with state and breezingly fast. I want persistent and preloaded execution mode to be integrated in CotEditor GitHub Īs the author of the Emmet plugin for CotEditor, The image resources are licensed under the terms of the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
#Alternatives to coteditor for a mac code#
The source code is licensed under the terms of the Apache License, Version 2.0.
CotEditor is a lightweight plain-text editor for macOS.