If you want to write to the macOS log from a script, you used to be able to use logger. Although it still works, here’s a more flexible alternative.
scripting
Intermediate level, showing the use of conditional flow control, iteration, filters, sorting, Magic Variables, and debugging with a Content Graph.
Basic tutorial to iterate recursively through a folder and count the number of files within it, then to do the same but as a Quick Action.
October 1993: AppleScript for the Mac.
April 2005: Automator for the Mac.
September 2018: Shortcuts for iOS.
October 2021: Shortcuts for macOS.
It’s time to do some spring-cleaning. How to clear out some of those thousands of old preference files without losing anything important. And here’s how to do it using Shortcuts too.
First AppleScript, then shell scripts, and in 2005 Automator: now Apple is bringing iOS Shortcuts to macOS 12. Will it make a difference, though?
Does Big Sur require you to sign your own apps or other code using a proper Apple-issued signature? What about notarization and quarantine? Your questions answered.
Which is the next ‘major’ release of macOS after Big Sur, then? Will it return to the numbering system before Mac OS X with 12.0, or 11.1?
How you can write entries in the unified log which are informative, easily retrieved, and extremely simple.
If you’re running an interpreted/JIT language, Big Sur could return that it’s either 10.16 or 11.0, depending on the version of the environment.