After finding a number of articles that describe the use of Apple Swift for scripting, I wanted to try my hand at it. I want to make some simple scripts that perform actions on the file system: moving things, renaming things, etc.
My preferred text editor is Sublime, and although there is a package for Swift syntax, you obviously don't get any kind of autocomplete. Alternatively, I could use Xcode, which historically has had amazing auto-completion. From the command line, I can type open myFile.swiftto open the Xcode editor window for this file.
However, when I do this, there is no autocomplete. I'm afraid that I need the whole Xcode project to be configured for assembly purposes, etc., in order to get autocomplete ... is that right?
Does anyone know an easy way to get Swift autocomplete in Xcode (or Sublime) for scripting? Thank!
source
share