In System Preferences > Sound > Sound Effects, users have the choice to turn off user interface sound effects (as an example, that might be a “tick” sound when adjusting a slider, or a “lock/unlock” sound when clicking a Lock button).

But how do you respect that setting? NSSound surely doesn’t.
Well, I found two ways to do it:

The “Easy” Way

macOS has a key in the standard UserDefaults object

com.apple.sound.uiaudio.enabled

If it is present and set to true, it’s safe to play the ui sound.

The “Safe” Way

What if the UserDefaults key isn’t present? Or you just want to be absolutely certain that your sound respects the user’s setting?

Use the AudioToolbox APIs. It offers

AudioServicesSetProperty(kAudioServicesPropertyIsUISound,...)

which marks sounds as UI sounds, thus not playing if the user wishes them not to.

It’s a bit more work, but might be the safer way to do it.

Read more

I’ve just published an update to BackLog, my freeware developer tool that lets you comfortably retrieve logs from your – or someone else’s, using custom URL schemes – Mac’s log archives.

What’s New
  • Checks for admin privileges at launch
  • Adds a simple update mechanism
  • The optional instructions you can send to users can now be copied in English or German (if you’d like to help translate them, please mail me – thank you!)
  • The sound that plays when retrieving logs completes now respects the “Play user interface sound effects” in System Preferences > Sound is enabled
Availability

BackLog is a freeware app, so if you like it, please take a look at my other apps – thank you!

It requires macOS 10.15 or newer and is currently available in English and German.
It needs to be run from a user with admin privileges (or using ‘sudo’ – user discretion advised).

Due to APIs it uses (OSLogStore), it does not run in the macOS sandbox, but it’s notarized by Apple and runs in the Hardened Runtime environment. When checking for updates (manually started), it connects to eternalstorms.at. Other than that, your internet connection is not used.

It runs natively on both Apple Silicon- and Intel Macs.

Website
Download (831 KB, zip)

If you find the app useful, please check out my other apps I offer for purchase on the App Stores – I’d appreciate it tons.

Enjoy 😊

Read more

I’m happy to announce the release of a new freeware app: BackLog.

The premise is simple:
It’s complicated, or at least cumbersome, to get logs that predate you clicking “Start streaming” in Console.app – Apple’s recommendation for it is to *create an entire system diagnostics report* and look for files in there. Madness.
I wanted a quick and easy way to, for example, get all log entries from all processes that happened from boot time to 5 minutes after. And that’s what this app lets me – and now, you – do.

Hello BackLog
BackLog, showing all log entries from boot-time to 4 seconds after boot-time.

Using BackLog is pretty straight-forward. Select the process you’re interested in, specify a time-range and an optional text-filter and hit Load Logs.
You can then select it all and copy-paste it somewhere, or hit the little Share button at the lower left to share it as a file.

For convenience, right-click the ‘from’ or ‘to’ date pickers and select a time from the contextual menu, like Boot time.
What makes it a Developer Tool?

While diagnostic logs might appear to be of interest mostly to developers, a simple logging-app is not a developer tool to me, per-se.
What really makes BackLog such a tool, in my opinion, is that developers can create backlog:// links which they can send to their customers, and, when they have the app installed and click that link, all the options (like process, date range and message type) will be set for them beforehand – no hassle. All the customer has to do is hit Load Logs and send the results back to the developer.

Numerous times I’ve had to deal with obscure app-sandbox or keychain access issues in Yoink, and having to tell customers to please open Console, filter for Yoink, and then (hopefully) reproduce the issue is just bad UX.
Now, I can send them this app with a backlog:// link, with a time range pre-defined, and all they have to do is copy-paste the results into a response to my mail. And best of all – they don’t have to reproduce anything, the logs already contain all the info I need from the last time the issue occurred.

You can either copy only the backlog:// link, or have it include pre-written instructions for your customers.
Links and Further Info

BackLog is and will be Freeware. If you like it, however, I’d like to ask you to take a look at my other apps I offer for purchase on the App Stores – thank you πŸ™‚

The app requires macOS 10.15 or newer and is localized – for now – in English and German.
It’s sadly not sandboxed, because the OSLogStore APIs won’t work in the sandbox environment πŸ€¦β€β™‚οΈ.
But Hardened Runtime is enabled, and it’s been notarized by Apple.
Naturally, it runs natively on both Apple Silicon and Intel Macs.

For BackLog to work reliably, the app must be run from an admin account, or using ‘sudo’ (user-discretion advised)

Website
Direct Download (801KB, zipped)

It’s also my first app completely written in Swift. That doesn’t make the app any better or worse. It’s just a fun fact.

If you have any feedback or questions, you can reach me any time by eMail. I’m looking forward to hearing from you.



Enjoy πŸ€—


Read more

Just a quick update on SiriMote, as I’ve been putting out a few updates for it over the last few weeks.

The app now has improved support for controlling the following apps with the Apple TV Siri Remote:
– Boinx Software’s FotoMagico
– Kodi
– Apple’s Keynote
– Apple’s TV App
– Infuse 7

SiriMote is freeware, and you can download it here.

Enjoy πŸ€—

Read more