Why does writing a simple app in Swift keep turning into an esoteric guessing game? More hurdles for re-scripting in Swift.
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.
Time to pause for breath, I think, for macOS and Xcode. Apple needs to bring the docs up to date, and attend to the detail.
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.
A success at last: scripting file operations works now. But don’t trust much of the documentation; it just frustrates.
A frustrating first day trying to get Xcode’s Swift playgrounds to display simple dialogs and alerts.
Can this app really offer a “modern alternative to AppleScript”? Probably not yet, but it is young, and still an excellent Swift playground.
The best response to change is to see how you can exploit it. Let’s get ahead of the field, for once.
An extensive listing of books, courses, example code libraries, coding environments, and more to help you get going in Swift 3.
