Quick Tip: Use Alfred to Look Up Apple API Errors
This morning I noticed a tip in the Core Intuition Slack group that DuckDuckGo has added a search !bang (!oss
) for https://www.osstatus.com, a website for quickly looking up Apple API errors. For example, if you’re working on an app and want to look up information on CKErrorNetworkUnavailable
, you can type !oss KErrorNetworkUnavailable
in the search bar to view the results.
If you’re an Alfred user, you can streamline the process even more.
- In Preferences, click Web Search.
- Click the Add Custom Search button in the bottom, right corner.
- Enter
[www.osstatus.com/search/re...](https://www.osstatus.com/search/results?platform=all&framework=all&search=){query}
in the Search URL field. - Enter a name for the search in the Title field.
- Enter a keyword for activating the search in the Keyword field. This is what you’ll type to activate the search in Alfred, so I like to keep it as short as possible. I decided to go with
.oss
- You can test the search by pasting an error name or number in the Validation field and clicking the Test button. With any luck, you’ll see the results appear in your browser.
I have similar searches setup for Stack Overflow and GitHub, two sites I visit multiple times each day.