Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Great codebase. I stumbled on this while trying to figure out how to programmatically control screen brightness in a macOS app. Turns out that this is far more difficult than imagined. Even controlling just the built-in screen, something I assumed would be included in Apple's libraries, was not included. The source code in MonitorControl is very well written and commented and helped me catch the mistakes I was doing in my very hacky solution.


Doing anything on macOS is more difficult than I imagine it to be. For example, writing an alt-tab-type app, enumerating the list of apps and their windows. Good luck.


The famous Dropbox Mac finder hack. It may have been mythologized a little, as Rajiv Eranki was probably the genius hacker who figured it out.

> Here’s that rare Steve Jobs story, one that’s never been told, about the company that got away. Jobs had been tracking a young software developer named Drew Houston, who blasted his way onto Apple’s radar screen when he reverse-engineered Apple’s file system so that his startup’s logo, an unfolding box, appeared elegantly tucked inside. Not even an Apple SWAT team had been able to do that.

> Rajiv Eranki (early employee, no longer at Dropbox) did much of the reverse-engineering required to get the our file overlay icons onto files in the Finder, and also to get us into context menus.

https://www.forbes.com/sites/victoriabarret/2011/10/18/dropb...

https://www.quora.com/Many-articles-about-Drew-Houston-say-t...


If you haven't figured this out yet, I'd maybe look into the code behind https://www.hammerspoon.org/docs/hs.window.switcher.html.


You can get the dock icon (app) list pretty easily, along with their windows

https://github.com/robilic/DockHand


I really would love something like rofi for macos


I think a combination of Alfred and Hammerspoon could get you most of the way there?




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: