coteditor / CotEditor

Lightweight Plain-Text Editor for macOS
https://coteditor.com
Other
6.46k stars 431 forks source link

Add "Compile" and "Run" commands #796

Open JochenNe opened 6 years ago

JochenNe commented 6 years ago

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?

1024jp commented 6 years ago

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.