Trying to decide whether a selected item is an app bundle turns out to be simple, if you cheat.
AppleScript
How to sort an array of arrays of strings, on the contents of one of those strings, in just 4 lines of Swift.
How HelpHelp accesses a large nested Property List files, handles its data as arrays, and uses NSHelpManager.
I’m sure there are more idiomatic or even efficient ways of doing it, but here is how I converted JSON data to CSV output.
Making progress with Consolation version 2: working out how to export useful data from JSON log excerpts. A punch-up in the Swift Playground.
Using preference files comes with remarkably little effort when writing them in Swift and Xcode.
I was dreading its conversion from an ordinary Cocoa app into an architecture which supported multiple windows. Would Xcode co-operate?
Here’s a tool which lets AppleScript and anything else which can run a shell command make an entry in Sierra’s logs.
It’s time to think of summer: that means macOS 10.13, APFS, and the future of scripting. Is Swift a suitable language?
How complex is the code needed for an app like Consolation? Most of it is actually straightforward if not simple.
