• Switching Mojave's dark and light themes using touch bar

    Mac OS Mojave introduces both a pretty dark mode and a way to trigger Automator scripts right from the Touch Bar. The two go together nicely:

    1. Open Automator and create a “Quick Action”. This should receive “no input” and have a single “Run AppleScript” action with the following content:
    tell application "System Events"
      tell appearance preferences
        set dark mode to not dark mode
      end tell
    end tell
    1. Save it, which will then land in your ~/Library/Services folder.
    2. In your System Preferences > Keyboard > “Customise Touch Bar…”, drag the “Quick Actions” to your Touch Bar.

    And – bam! – two taps on the Touch Bar, and you toggle between light and dark.

    I also tried (desperately) to switch the accent colour at the same time, but to no avail. The script below shows that there’s highlight color: orange, but I couldn’t get this to work. I’d appreciate any help from AppleScript pros.

    tell application "System Events"
      tell appearance preferences
        get properties
        set highlight color to orange -- does nothing visually, though it does change that property :(
      end tell
    end tell

  • Tech Note: RxSwift in custom views, the clean way
  • Just came across Mirrorshades which is as minimalist as web analytics can get. Adorable simplicity!

  • Tech Note: Importing app module in unit test fails to compile
  • I very much enjoyed this mathematical and easy to follow explanation of the benefits of vaccinations to the community – including those who don’t or can’t get vaccinated themselves: “How Math (and Vaccines) Keep You Safe From the Flu” by Patrick Honner

  • Nick Bilton on Vanity Fair:

    As a society, we feel like we’re at war with a computer algorithm, and the only winning move is not to play.

    This is in a nutshell why privacy matters, even if you don’t have anything to hide.

  • iPad Pro 12.9 vs. 10.5

    The iPad Pro is a great device and I’ve been happily using the 12.9 inch model for a good 1.5 years. At times it felt too large though – especially when using it on the couch. So when I got the chance to get a new iPad for work, I decided to give the 10.5 inch model a try. What follows are my observations after a few months of using the 10.5 inch model running iOS 11.

    On the screen real estate:

    1. Having two apps in 50/50 split screen mode gives both the iPhone appearance, i.e., you typically just get a single column of content, not two.
    2. However, several apps, such as Safari gets a special mode for when it is in a 50/50 split with another app or you use its own split screen mode: you get a toolbar on the bottom like on an iPad, but you still get the tabs at the top as when using fullsceen.
    3. No more 3-column views when using Apple’s apps full-screen. Say, in Mail you don’t have a view where you can see both the message, the list of messages and the list of folders. I used this a fair bit to quickly drag and drop messages to folders, and this is simply not possible – you never get to see both the list of messages and the list of folders on one screen. The same applies to Notes. However, third-party apps behave differently and, say, Ulysses and Bear still have the three column view.
    4. You only get 13 slots in the Dock, not 15. However, when you cram it full and have the recent apps visible on the right, the tap targets become so small in portrait mode that I had several cases of hitting the wrong app, which is something that never happened on the 12.9. I’m sticking to 11 apps plus the recent ones because of that.

    On the software keyboard:

    1. You don’t get the additional keyboard row with numbers, but you do get the swipe down on keys to get to numbers and special characters.
    2. You also don’t get a tab key (nor a caps lock key). Makes filling in forms slower and a disadvantage if you do coding on the iPad.
    3. 10 finger typing on the software keyboard is also possible. Took me less than a day to adjust and I feel like I am making less mistakes on the 10.5 inch screen than in the 12.9 one.
    4. No more oversized old software keyboard for apps that haven’t yet been updated for the 12.9 size - unfortunately that’s still quite a few apps. You still notice those apps as the lack of being optimised for the 10.5 inch screen means they don’t look as sharp as updated apps.

    On the pencil:

    1. My primary use case on the pencil is hand-written notes and sketches. The 10.5 works just fine for that.

    My summary: I feel less of a need to always use split screen mode as fullscreen apps don’t overwhelm you as easily as on the large iPad. I missed the 3-column views initially, but adopting my workflow for sorting my mails did not take long. I’m very happy with the “tiny” iPad. It’s good for typing, more suitable for the couch and much more portable.

  • iOS 11 tip: Enjoy a web focussed on content by making reader mode in Safari opt-out rather than opt-in. Long press the reader icon & select “use on all sites”.

  • Enjoying the challenge to easily post from my iPad to my microblog that’s backed by Jekyll.

subscribe via RSS or via JSON