Assign a keyboard shortcut to open a new browser window on macOS

If you’re like me — someone who likes to manage different tasks on different windows and spaces instead of opening 50 tabs on the same window until the tabs get so tiny that you can't even see the favicon 🤮. You might find it a pain, sometimes, to open a new window in Chrome or any browser that you prefer. …


Hello, I’m Ansèlm, an amateur blogger. I write blogs about some of my projects. I was born in the year ’96 — when personal computers became reality and was quickly followed by the mainstream adoption of the internet in the 2000s. I got my first computer when I was 4 years old, in the year 2000. It truly changed my life, for better or worse, I will never know…

Hello, I’m Ansèlm, an amateur blogger. 👋 I write blogs about some of my projects. I was born in the year ’96 🙌 – when personal computers became reality and was quickly followed by the mainstream adoption of the internet in the 2000s. …


Learn about AppleScript functions, actual and formal parameters, and NSAppleEventDescriptor — The holy grail.

Okay, so in part 1 I only had to pass variables from Swift to AppleScript, but I didn’t have to edit the variables. Well, I thought that the variables are editable once passed into AppleScript. I thought wrong. 😓

So, here’s what happens when you pass Swift or Objective-C variables (Int, NSInteger, String, NSString, blah blah) to AppleScript.

You can pass Swift or Obj-C variables to AppleScript and access them and output them to the console without breaking a sweat, like in part 1. 👍🏼 The problem arises when you want to edit them. Let’s say you’re passing an Int 2 from Swift to AppleScript. …

About

Anselm Joseph

I often explore space.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store