I was surprised to discover that few books on Swift explain how to use its structured documentation system. No wonder we don’t document our code properly.
scripting
It’s time to clean up my code and factor out functions for re-use. This turns out to be straightforward.
Staple functions for scripts, it is vital that they are readily accessible from Swift if it is to be used for scripting.
How to run a shell command with root privileges from with Swift. The roundabout way.
Porting a 3-line AppleScript hack to Swift 3 in Xcode is not hard. But there’s always a but…
What more is needed if Swift is going to realise its promise as a scripting language for macOS?
Why does writing a simple app in Swift keep turning into an esoteric guessing game? More hurdles for re-scripting in Swift.
How easy is it to build a real ‘scripted’-type app in Xcode? Here I start to re-implement an AppleScript app using Swift.
There’s no point trying to script in Swift if you can’t deploy it to a user’s Mac. Here are two solutions available now.
Running shell scripts from Swift playgrounds is easy, but there’s more work needed to support droplets and folder actions.
