


The app vs window distinction just didn’t exist in my mind. Suddenly I was closing all windows of Sublime but its icon was still there in the Command Tab list, or I would minimize Chrome and focusing its icon didn’t unminimize it. Six years ago I was a Windows power user, and when I got my first Mac, Command Tabbing through apps felt very weird. When an app with multiple windows is focused, Command backtick will cycle through the windows of that app. well, windows, on macOS you Command Tab through apps by default. As opposed to Microsoft Windows where you just Alt-Tab through. There’s an important distinction between switching windows and switching apps on the Mac. Well it turns out it’s pretty darn hard, and I’m still working on this window switching thing to this day.

I remember something about Accessibility permissions not being available in the sandbox, but I just used an App Store app that was able to request the permissions so there has to be a way, how hard could it be? I don’t even care why anymore, let’s just release this fix on the App Store.Īnd while I’m at it, why not try to add that window switching capability that people have been asking about? Run open /System/Volumes/Data/Applications/Firefox.app, huh? no websites load? THAT WAS IT?!Īdd path.replacingOccurrences(of: "/System/Volumes/Data", with: ""), build, run, hold Right Command, press F, Firefox launches and holy cow everything works!! or was it the other way around? Anyway let’s just try it for the sake of it, I’m desperate. Try open /Applications/Firefox.app in a terminal, it works, websites load as expected.īreakpoint on launchApp, check the debugger again, let’s be rigorous, what am I really calling open on?Īrgument is /System/Volumes/Data/Applications/Firefox.app which is just a symlink to /Applications/Firefox.app right?. Launch Xcode, open the rcmd project, check the launchApp function code, it’s just a NSWorkspace.open call on Firefox.app, what does Alfred do differently?ĭisassemble Alfred.app in Hopper, look for NSWorkspace.open, of course it’s there, it’s the exact same thing. Please fix ASAP!! I’m gonna fix this Firefox issue once and for all! Not without annoying workarounds and a confusing user experience.Īnother email, another annoyed user: Firefox not loading websites when launched through rcmd! It works when launched from Alfred. I tried revamping that from inside the confines of an App Store app. Home Blog Notes Stuff Contact Résumé RSS A window switcher on the Mac App Store? Is it even possible? Focusing a specific window on macOS felt too cumbersome.
