CotEditor icon indicating copy to clipboard operation
CotEditor copied to clipboard

Add "Compile" and "Run" commands

Open JochenNe opened this issue 7 years ago • 1 comments

Hi, this is a great piece of software I'd very much like to use during AppleScript development. But what is missing are two functions very often used during development: Compile (CMD-K) and Run (CMD-R).

Do you have any plans to implement this?

Also: If I open an existing script file, CotEditor opens the compiled version which is unreadable. Are there any settings to make sure the AppleScript source code is opened instead of the compile script?

JochenNe avatar Feb 26 '18 19:02 JochenNe

Currently, CotEditor doesn't provide such language-specific features and let users create their own scripts to fulfil such a demand. I consider to implement such "Compile" or "Run" commands in a (far) feature, but not in the fixed list yet.

Also: If I open an existing script file, CotEditor opens the compiled version which is unreadable. Are there any settings to make sure the AppleScript source code is opened instead of the compile script?

Compiled AppleScript is a binary. It's not a plain-text anymore. Therefore, CotEditor, a plain-text editor, cannot open it. It's by design. [note] By AppleScript, a file with a .scpt extension is a compiled file and file with an .applescript extension is an uncompiled plain-text file.

1024jp avatar Mar 05 '18 10:03 1024jp