Which String.contains() variant should you use, and how can you give access to regex searching? More answers coded in Swift 3.1.
AppleScript
A crashing app points out the problems of using functions that return values of ‘Any’ type. Here’s one solution.
Creating a drop-down sheet to let the user change preference settings is a bit intricate, but straightforward.
AppleScript, JavaScript, or something else? Which language and scripting system should you choose?
In some respects at least as good as any other Swift playground product, and its AppleScript support has improved considerably. But in other respects still falls short. In a class of one.
Want to write to Sierra’s log from a language or app which doesn’t give easy access? Use this free tool which now writes anything you want.
A classic scripting task: iterate through a folder and its entire contents, testing to see if each file is readable or writable. It’s straightforward in Swift too.
There are lots of different ways to modify a string, but some would turn out to be very inefficient. A gentle wander through CharacterView and a mapping closure.
A simple and elegant way to eliminate duplicates from an array of strings comes and goes as Swift 3.1 takes charge.
How T2M2 analyses Sierra’s log to assess how backups have been working. With insights into using NSDate, NSStepper, and more.
