<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>MacOS on yozy//NET</title>
    <link>https://yozy.net/tags/macos/</link>
    <description>Recent content in MacOS on yozy//NET</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 27 Aug 2018 12:00:00 +0200</lastBuildDate>
    <atom:link href="https://yozy.net/tags/macos/feed.xml" rel="self" type="application/rss" />
    <item>
      <title>Apple September 2018 Keynote Predictions</title>
      <link>https://yozy.net/2018/08/apple-september-2018-keynote-predictions/</link>
      <pubDate>Mon, 27 Aug 2018 12:00:00 +0200</pubDate>
      <guid>https://yozy.net/2018/08/apple-september-2018-keynote-predictions/</guid>
      <description>&lt;p&gt;As a fun exercise I would like to make some predictions for the 2018 September Apple keynote. There are two rumored machines that should come out.&lt;/p&gt;&#xA;&lt;h1 id=&#34;the-new-mac-mini&#34;&gt;The new Mac Mini&lt;/h1&gt;&#xA;&lt;p&gt;According to rumors, this machine will be geared towards pro users. As usual, the statement is vague. What pro users? Developers, animators, writers?&lt;/p&gt;&#xA;&lt;p&gt;Current Mac Minis mainly serve three purposes:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;home media server&lt;/li&gt;&#xA;&lt;li&gt;&amp;ldquo;rich man&amp;rsquo;s raspberry pi&amp;rdquo;&lt;/li&gt;&#xA;&lt;li&gt;server in a colo&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Professionals do not need home media servers, and since Apple does not make a standalone screen it means that the machine will have to be usable headless.&lt;/p&gt;&#xA;&lt;p&gt;As such it will require Ethernet and power, which makes it possible to do away with all other ports. I expect Apple to offer a low-grade Xeon CPU option in order to allow for ECC ram and at least an option with 32G ram.&lt;/p&gt;&#xA;&lt;p&gt;Why would Apple do this?&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Nobody uses underpowered desktops today.&lt;/li&gt;&#xA;&lt;li&gt;Apple needs and probably has a similar machine for internal usage.&lt;/li&gt;&#xA;&lt;li&gt;The work on Xcode automation is useless if one cannot have an affordable Mac server.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h1 id=&#34;the-new-macbook-air&#34;&gt;The new MacBook Air&lt;/h1&gt;&#xA;&lt;p&gt;I expect Apple to sanitize their offering. Nobody except Apple pundits knows how are the machines named before they enter the Apple store.&lt;/p&gt;&#xA;&lt;p&gt;I believe that Apple will:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Rename the current &lt;em&gt;MacBook&lt;/em&gt; to &lt;em&gt;MacBook Air&lt;/em&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Discontinue the &lt;em&gt;13″ MacBook Pro without TouchBar&lt;/em&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Introduce a new cheaper 13″ computer called &lt;em&gt;MacBook&lt;/em&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;This will make the lightest Mac have the &lt;em&gt;Air&lt;/em&gt; moniker. The current &lt;em&gt;MacBook&lt;/em&gt; is underpowered for the generic user and the current &lt;em&gt;MacBook Pro without TouchBar&lt;/em&gt; is a compromised machine with no market.&lt;/p&gt;&#xA;&lt;h2 id=&#34;cpu-and-graphics&#34;&gt;CPU and Graphics&lt;/h2&gt;&#xA;&lt;p&gt;For CPU it will have the cheapest Intel 15W CPU Apple can get, with expensive upgrades to CPUs with the same TDP. It will not have a discrete GPU and no TouchBar.&lt;/p&gt;&#xA;&lt;h2 id=&#34;ports&#34;&gt;Ports&lt;/h2&gt;&#xA;&lt;p&gt;People buying the Pro computer should be savvy enough to know which dongles to buy and people buying an ultra-light computer do not need peripherals.&lt;/p&gt;&#xA;&lt;p&gt;However, Apple needs the &lt;em&gt;Average Joe&amp;rsquo;s MacBook&lt;/em&gt; to work for most users today, not in an imaginary future. This means it needs at least one USB port. It does not need thunderbolt. It would be better with an HDMI port and an SD card slot but these are unlikely to be included.&lt;/p&gt;&#xA;&lt;p&gt;I predict that it will have 2 USB-C ports for power and 1 or 2 USB-A ports (for symmetry).&lt;/p&gt;&#xA;&lt;h2 id=&#34;keyboard&#34;&gt;Keyboard&lt;/h2&gt;&#xA;&lt;p&gt;If Apple wants to make this work they would need to backpedal to the old system. Even the new updated 2018 butterfly keyboard keeps failing. If they make a new body for this machine, it is possible that they would introduce a v4 of the butterfly switch mechanism.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>What happens when you delete ~/.Trash folder on macOS</title>
      <link>https://yozy.net/2018/05/what-happens-when-you-delete-~/.trash-folder-on-macos/</link>
      <pubDate>Tue, 15 May 2018 13:00:00 +0200</pubDate>
      <guid>https://yozy.net/2018/05/what-happens-when-you-delete-~/.trash-folder-on-macos/</guid>
      <description>&lt;p&gt;I have done some stupid stuff and managed to delete the &lt;code&gt;~/.Trash&lt;/code&gt; folder on my Mac. The result was surprising:&lt;/p&gt;&#xA;&lt;video width=&#34;720&#34; height=&#34;600&#34; controls&gt;&#xA;  &lt;source src=&#34;https://yozy.net/videos/finder-delete-trash.mp4&#34; type=&#34;video/mp4&#34;&gt;&#xA;&#x9;Your browser does not support the video tag.&#xA;&lt;/video&gt;&#xA;&lt;p&gt;To fix this you can type this in the shell:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;mkdir ~/.Trash&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This is clearly bad user experience. Somebody not knowing how to fix this will just assume that the trash stopped working. Even worse, they might miss the message and just click on Delete.&lt;/p&gt;&#xA;&lt;p&gt;What should macOS do in this case, is to silently restore the trash folder and keep on humming.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>DTerm and Fish shell, together</title>
      <link>https://yozy.net/2017/10/dterm-and-fish-shell-together/</link>
      <pubDate>Tue, 31 Oct 2017 15:10:51 +0000</pubDate>
      <guid>https://yozy.net/2017/10/dterm-and-fish-shell-together/</guid>
      <description>&lt;p&gt;Fish shell does not seem to like to live within the DTerm terminal emulator. Sadly, DTerm seems in a state of abandon.&lt;/p&gt;&#xA;&lt;p&gt;What I do now is to force &lt;code&gt;bash&lt;/code&gt; as the shell used by DTerm. I do this by launching:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-fish&#34; data-lang=&#34;fish&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nf&#34;&gt;env&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;SHELL&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;/bin/bash &lt;span class=&#34;nb&#34;&gt;open&lt;/span&gt; /Applications/DTerm.app&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Make Notes.app more beautiful</title>
      <link>https://yozy.net/2013/11/make-notes.app-more-beautiful/</link>
      <pubDate>Mon, 11 Nov 2013 15:59:51 +0000</pubDate>
      <guid>https://yozy.net/2013/11/make-notes.app-more-beautiful/</guid>
      <description>&lt;p&gt;A bit of googling shows that the old version of the Notes.app will not work in Mavericks. But luckily one quickly finds out that the Resources folder is quite resourceful.&lt;/p&gt;&#xA;&lt;p&gt;Namely there are two files that are interesting:&lt;/p&gt;&#xA;&lt;p&gt;In &lt;code&gt;/Applications/Notes.app/Contents/Resources&lt;/code&gt; there is a file named &lt;code&gt;paper.tiff&lt;/code&gt; which looks like this:&lt;/p&gt;&#xA;&lt;p&gt;Yup, this is the ugly texture under the text. Small change to it and we have something looking like a post-it already. Now, this method is not new and plenty has been written about it.&lt;/p&gt;&#xA;&lt;p&gt;The other change is to change the default fonts, once again in &lt;code&gt;/Applications/Notes.app/Contents/Resources/en.lproj&lt;/code&gt; there is a file called DefaultFonts.plist and it is quite straightforward. I am a huge fan of TektonPro for notes so I put in&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-xml&#34; data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;dict&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;key&amp;gt;&lt;/span&gt;FontName&lt;span class=&#34;nt&#34;&gt;&amp;lt;/key&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;string&amp;gt;&lt;/span&gt;TektonPro-Bold&lt;span class=&#34;nt&#34;&gt;&amp;lt;/string&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;key&amp;gt;&lt;/span&gt;Size&lt;span class=&#34;nt&#34;&gt;&amp;lt;/key&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;integer&amp;gt;&lt;/span&gt;14&lt;span class=&#34;nt&#34;&gt;&amp;lt;/integer&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;/dict&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;And &amp;rsquo;lo my new Notes.app look:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://yozy.net/images/Notes.app.png&#34; alt=&#34;Updated look of Notes.app&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve made a quick mod to patch the files. You can grab it here:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://yozy.net/files/downloads/Notes.app-Mod-v1.zip&#34;&gt;Mod for Notes.app v1&lt;/a&gt;&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Lock screen on Mac OS X with keyboard shortcut [updated]</title>
      <link>https://yozy.net/2012/11/lock-screen-on-mac-os-x-with-keyboard-shortcut-updated/</link>
      <pubDate>Wed, 28 Nov 2012 16:56:37 +0000</pubDate>
      <guid>https://yozy.net/2012/11/lock-screen-on-mac-os-x-with-keyboard-shortcut-updated/</guid>
      <description>&lt;p&gt;&lt;em&gt;Last update: 2017-11-18 for High Sierra&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;Luckily we now have a real shortcut without hacks using &lt;strong&gt;⌃⌘Q&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;One of the issues that rises the most eyebrows while using Mac OS X is that&#xA;there is no native way of simply locking your screen with a keyboard shortcut.&#xA;Finally I have managed to compile all of the stuff on the Internet to come up&#xA;with a simple yet &lt;em&gt;real&lt;/em&gt; solution to this problem If you can not be bothered by&#xA;reading the whole article here is the short version:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Run &lt;strong&gt;Keychain Access&lt;/strong&gt; go to &lt;strong&gt;Preferences → General → Show keychain status in menubar&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Look at &lt;a href=&#34;https://yozy.net/2011/05/global-keyboard-actions-in-snow-leopard-without-third-party-software&#34; title=&#34;Global keyboard actions in Snow Leaopard without third party software&#34;&gt;this tutorial&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Use the script from &lt;a href=&#34;https://gist.github.com/1322095&#34; title=&#34;https://gist.github.com/1322095&#34;&gt;freespace&amp;rsquo;s github page&lt;/a&gt; instead of my example.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;And now for the long version.&lt;/p&gt;&#xA;&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;&#xA;&lt;p&gt;There are a lot of ways to work around this problem and many of them were&#xA;already published on a zillion of blogs. In practice four methods prevail:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Setting the system to lock immediately upon launching the screensaver and&#xA;then using the &lt;strong&gt;ctrl+⇧+⏏&lt;/strong&gt; (control+shift+eject) shortcut.&lt;/li&gt;&#xA;&lt;li&gt;Enabling the Keychain Access menu item and then choosing &lt;strong&gt;lock screen&lt;/strong&gt;&#xA;from the menu (by mouse).&lt;/li&gt;&#xA;&lt;li&gt;Enabling the multiple user login and then switching user.&lt;/li&gt;&#xA;&lt;li&gt;Using a third party software, such as Quicksilver or Alfred.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Of course these methods have all some benefits and some drawbacks. When we look&#xA;at them we can easily spot that only the option two actually does what we want:&#xA;it locks the screen without closing the session, it is native and it &lt;em&gt;has&lt;/em&gt; to&#xA;be invoked by the user. However it does not use the feedback, so fails to&#xA;satisfy the primary objective.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-real-solution&#34;&gt;The real solution&lt;/h2&gt;&#xA;&lt;p&gt;It is extremely simple to assign a keyboard shortcut to any item in the&#xA;application menu. Sadly, the task bar is not considered part of it and the&#xA;keyboard shortcuts will not reach it. Enter AppleScript and Automator, solution&#xA;to any problem there is! It took some digging but there actually &lt;strong&gt;is&lt;/strong&gt; an&#xA;AppleScript which clicks on menu items. With that we can create a service that&#xA;will then be available thorough a global shortcut.&lt;/p&gt;&#xA;&lt;h3 id=&#34;preliminary&#34;&gt;Preliminary&lt;/h3&gt;&#xA;&lt;p&gt;In order for this to work you need to enable the Keychain Access menu item. Run&#xA;&lt;strong&gt;Keychain Access&lt;/strong&gt; go to &lt;strong&gt;Preferences → General → Show keychain status in&#xA;menubar&lt;/strong&gt;,&lt;/p&gt;&#xA;&lt;h3 id=&#34;implementation&#34;&gt;Implementation&lt;/h3&gt;&#xA;&lt;p&gt;The path from a script to a service to a keyboard shortcut is already paved. I&#xA;have already covered how to &lt;a href=&#34;https://yozy.net/2011/05/global-keyboard-actions-in-snow-leopard-without-third-party-software&#34; title=&#34;Global keyboard actions in Snow Leaopard without third party software&#34;&gt;assign a global keyboard shortcut to a script&lt;/a&gt;&#xA;so please refer to that.&lt;/p&gt;&#xA;&lt;h3 id=&#34;the-script&#34;&gt;The script&lt;/h3&gt;&#xA;&lt;p&gt;The actual script to use is taken from &lt;a href=&#34;https://gist.github.com/1322095&#34; title=&#34;https://gist.github.com/1322095&#34;&gt;freespace&amp;rsquo;s github page&lt;/a&gt; and is&#xA;actually based on an example provided by Apple itself. For the sake of&#xA;consistency, here is the script:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-applescript&#34; data-lang=&#34;applescript&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;tell&lt;/span&gt; &lt;span class=&#34;nb&#34;&gt;application&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;System Events&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;k&#34;&gt;get&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;properties&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;k&#34;&gt;get&lt;/span&gt; &lt;span class=&#34;nb&#34;&gt;every&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;process&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;k&#34;&gt;if&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;UI&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;elements&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;enabled&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;then&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;k&#34;&gt;tell&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;process&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;SystemUIServer&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;k&#34;&gt;repeat&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;with&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;i&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;from&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;1&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;to&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;number&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;of&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;menu&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;bar&lt;/span&gt; &lt;span class=&#34;nb&#34;&gt;items&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;of&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;menu&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;bar&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;1&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                &lt;span class=&#34;k&#34;&gt;if&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;description&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;of&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;menu&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;bar&lt;/span&gt; &lt;span class=&#34;nb&#34;&gt;item&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;i&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;of&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;menu&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;bar&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;1&lt;/span&gt; &lt;span class=&#34;ow&#34;&gt;is&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;Keychain menu extra&amp;#34;&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;then&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                    &lt;span class=&#34;k&#34;&gt;tell&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;menu&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;bar&lt;/span&gt; &lt;span class=&#34;nb&#34;&gt;item&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;i&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;of&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;menu&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;bar&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;1&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                        &lt;span class=&#34;nv&#34;&gt;click&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                        &lt;span class=&#34;k&#34;&gt;if&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;name&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;of&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;menu&lt;/span&gt; &lt;span class=&#34;nb&#34;&gt;item&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;1&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;of&lt;/span&gt; &lt;span class=&#34;nb&#34;&gt;front&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;menu&lt;/span&gt; &lt;span class=&#34;ow&#34;&gt;is&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;Lock Screen&amp;#34;&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;then&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                            &lt;span class=&#34;nv&#34;&gt;click&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;menu&lt;/span&gt; &lt;span class=&#34;nb&#34;&gt;item&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;Lock Screen&amp;#34;&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;of&lt;/span&gt; &lt;span class=&#34;nb&#34;&gt;front&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;menu&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                            &lt;span class=&#34;k&#34;&gt;exit&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;repeat&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                        &lt;span class=&#34;k&#34;&gt;end&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;if&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                    &lt;span class=&#34;k&#34;&gt;end&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;tell&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                &lt;span class=&#34;k&#34;&gt;end&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;if&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;k&#34;&gt;end&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;repeat&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;k&#34;&gt;end&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;tell&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;k&#34;&gt;else&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;k&#34;&gt;tell&lt;/span&gt; &lt;span class=&#34;nb&#34;&gt;application&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;System Preferences&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;nb&#34;&gt;activate&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;k&#34;&gt;set&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;current&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;pane&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;to&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;pane&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;com.apple.preference.universalaccess&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;nb&#34;&gt;display dialog&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;UI element scripting is not enabled. Check \&amp;#34;Enable access for assistive devices\&amp;#34;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;k&#34;&gt;end&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;tell&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;k&#34;&gt;end&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;if&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;end&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;tell&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;And for the sake of clarity: I did not code this script.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Add shortcuts for emoji characters to finally put the ± key to use</title>
      <link>https://yozy.net/2012/11/add-shortcuts-for-emoji-characters-to-finally-put-the-key-to-use/</link>
      <pubDate>Thu, 08 Nov 2012 03:13:01 +0000</pubDate>
      <guid>https://yozy.net/2012/11/add-shortcuts-for-emoji-characters-to-finally-put-the-key-to-use/</guid>
      <description>&lt;p&gt;I have finally managed to find a use for the ± key on the Apple keyboard. This keyI have finally managed to find a use for the ± key on the Apple keyboard. This key bugged me since I got the computer as I have never ever seen it in a text and just can not understand why it would be on a keyboard in the first place.&lt;/p&gt;&#xA;&lt;p&gt;Since there is a native text-expansion feature in OS X (Settings → Language&#xA;&amp;amp; Text → Text) it seems that this character could serve as a perfect&#xA;&amp;ldquo;marker&amp;rdquo; for some exotic shortcuts. The color emoticons available in the OS X&#xA;make a perfect candidate since inserting them into text is quite a hassle as&#xA;one has to go through the Special Character menu.&lt;/p&gt;&#xA;&lt;p&gt;Thus I made shortcuts for some of them as illustrated here:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://yozy.net/images/emoji-shortcuts.png&#34; alt=&#34;img-emoji-shortcuts&#34; title=&#34;Emoji shortcut examples&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;They help me navigate in plain text document and provide valuable highlighting&#xA;options in places where other methods do not exist. Maybe this could help you&#xA;too. Bugged me since I got the computer as I have never ever seen it in a text&#xA;and just can not understand why it would be on a keyboard in the first place.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>US Extended layout for Mac with switched `/~ and §/± keys</title>
      <link>https://yozy.net/2012/10/us-extended-layout-for-mac-with-switched-/~-and-/-keys/</link>
      <pubDate>Thu, 18 Oct 2012 23:02:03 +0000</pubDate>
      <guid>https://yozy.net/2012/10/us-extended-layout-for-mac-with-switched-/~-and-/-keys/</guid>
      <description>&lt;p&gt;The Mac keyboard layout is weird. Some choices Apple made when designing it are&#xA;good but some of them really come from outer space. Why would anybody need a ±&#xA;symbol on his keyboard is beyond me. Luckily Ukelele software provides an&#xA;acceptable solution.&lt;/p&gt;&#xA;&lt;p&gt;Personally I use U.S. Extended layout for almost everything. The only time I&#xA;switch is when I have a very lengthy french text to write. (Speaking of which,&#xA;why does french layout have a  character directly on the keyboard? Just how&#xA;often would anybody use that?). So, in order to keep the layout consistent with&#xA;other keyboards I have made a U.S. Extended+ version which changes flips the&#xA;&lt;strong&gt;§±&lt;/strong&gt; and &lt;strong&gt;`~&lt;/strong&gt; keys around.&lt;/p&gt;&#xA;&lt;p&gt;Download it here:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://yozy.net/files/downloads/USExtended+.zip&#34; title=&#34;USExtended+ keyboard layout&#34;&gt;USExtended+&lt;/a&gt;&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>List of useful links to hack your OS X installation</title>
      <link>https://yozy.net/2012/07/list-of-useful-links-to-hack-your-os-x-installation/</link>
      <pubDate>Thu, 05 Jul 2012 08:00:40 +0000</pubDate>
      <guid>https://yozy.net/2012/07/list-of-useful-links-to-hack-your-os-x-installation/</guid>
      <description>&lt;p&gt;This is more of a social bookmark than a full article. OS X is pretty neat but&#xA;the ever-present philosophy of &amp;ldquo;our way of doing it is the right way&amp;rdquo; can be&#xA;frustrating from time to time. Since I do not really like the trend of&#xA;paraphrasing already written articles I will just dump a bunch of links here&#xA;and say what I used them for.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://phatness.com/2007/08/fix-home-and-end-keys-on-mac-os-x/&#34; title=&#34;Fix Home and End keys behaviour&#34;&gt;Fix Home and End keys behaviour&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Home and End keys should go to the beginning and end of the line you are on&#xA;while editing. In OS X they scroll to the top and the bottom of the current&#xA;document, which is retarded.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/mathiasbynens/dotfiles/blob/master/.osx&#34; title=&#34;A ton of useful hidden settings&#34;&gt;A ton of useful hidden settings&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I like keyboard repeat. Also I like to be able to copy text from QuickLook.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://www.macworld.com/article/1131923/qlterminal.html&#34; title=&#34;Use QuickLook from the terminal&#34;&gt;Use QuickLook from the terminal&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I use this for my side-project of making Midnight Commander actually usable on&#xA;OS X. So far I did not have time to really invest into it.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Best editor for Chinese text on Mac</title>
      <link>https://yozy.net/2012/06/best-editor-for-chinese-text-on-mac/</link>
      <pubDate>Sun, 24 Jun 2012 16:15:27 +0000</pubDate>
      <guid>https://yozy.net/2012/06/best-editor-for-chinese-text-on-mac/</guid>
      <description>&lt;p&gt;I have spent some time (like an hour or so) looking for a good editor for&#xA;Chinese script on Mac OS X. To my surprise most of what I have tried sucked in&#xA;one or more ways.&lt;/p&gt;&#xA;&lt;h2 id=&#34;competitors&#34;&gt;Competitors&lt;/h2&gt;&#xA;&lt;p&gt;Of course, I have started with the editor I use to edit plaintext daily -&#xA;&lt;strong&gt;iA Writer&lt;/strong&gt;. For once, I have said to myself, the humongous font&#xA;this editor uses would be very useful. Sadly, iA Writer uses the default OS X&#xA;font for chinese. This derivate of Heiti is quite broken and many glyphs are&#xA;wrong (this was pointed out to me by a native speaker). Also, line height of&#xA;lines with chinese characters is weird, and it changes depending of the&#xA;presence of non-chinese characters in it (including blank space). I have&#xA;reported the issue to the authors and it was acknowledged so there might be a&#xA;different font used in future versions… we will see.&lt;/p&gt;&#xA;&lt;p&gt;So my first choice did not work out. No worries, there are plenty other editors&#xA;to check. My second choice was &lt;a href=&#34;http://code.google.com/p/macvim/&#34; title=&#34;MacVim&#34;&gt;&lt;strong&gt;MacVim&lt;/strong&gt;&lt;/a&gt;, which is the best&#xA;invention since sliced bread. The experience was very poor. The insert mode&#xA;works well, as expected, however the normal mode hates IMKQIM input method. It&#xA;would seem that Vim was not meant to be used with other than standard input&#xA;methods, which is understandable.&lt;/p&gt;&#xA;&lt;p&gt;Moving on. Since alternative software did not work out I tried the native&#xA;solutions. &lt;strong&gt;TextEdit&lt;/strong&gt; is usually a very good text editor, if you&#xA;do not need any features. When writing immediately (in plain text mode), you&#xA;will run into the same problem as with iA Writer : horrible font. You can&#xA;change the font for plain text mode, of course, but you have to choose the&#xA;right one. STSong is a good choice, with other fonts you might run into&#xA;problems with line heights (as some fonts miss some glyphs).&#xA;&lt;strong&gt;Fraise&lt;/strong&gt; suffers from similar problems.&lt;/p&gt;&#xA;&lt;p&gt;I have also tried &lt;strong&gt;Pages&lt;/strong&gt;, it works really well, with the right fonts. Line&#xA;heights are always OK. But it is not a plain text editor, and it has all the&#xA;downsides of a text processor with hundreds of options.&lt;/p&gt;&#xA;&lt;h2 id=&#34;conclusion&#34;&gt;Conclusion&lt;/h2&gt;&#xA;&lt;p&gt;Finally, I ended up with yet another editor. I have dug up the rusty&#xA;&lt;a href=&#34;http://gottcode.org/focuswriter/&#34; title=&#34;FocusWriter&#34;&gt;&lt;strong&gt;FocusWriter&lt;/strong&gt;&lt;/a&gt; which I have abandoned previously to&#xA;iA Writer. The possibility to switch themes makes it a good choice for&#xA;different scripts. My choice was the 华文细黑 font.  Best of all FocusWriter is&#xA;available on all platforms, so I just use that on Linux as well.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;p&gt;&lt;em&gt;Edit 2015-10-18&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;iA Writer no longer has the aforementioned problems, at least in OSX 10.11&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Fix the home and end keys in Firefox with Keyconfig and Vimperator</title>
      <link>https://yozy.net/2012/04/fix-the-home-and-end-keys-in-firefox-with-keyconfig-and-vimperator/</link>
      <pubDate>Wed, 25 Apr 2012 11:12:58 +0000</pubDate>
      <guid>https://yozy.net/2012/04/fix-the-home-and-end-keys-in-firefox-with-keyconfig-and-vimperator/</guid>
      <description>&lt;p&gt;Somme funny man thought that it would be good to screw up the behavior of home&#xA;and end keys in firefox on Mac. Nobody knows why and everybody is complaining.&#xA;Also, the same genius have made the &lt;em&gt;⌘→&lt;/em&gt; and &lt;em&gt;⌘←&lt;/em&gt;&#xA;commands navigate in history instead of doing what they do in every other&#xA;application which is &amp;ldquo;move to the end or beginning of the line&amp;rdquo;.&lt;/p&gt;&#xA;&lt;p&gt;Oh well.. Luckily there IS a solution for this. The extension keyconfig will&#xA;fix half of the problem. &lt;a href=&#34;http://forums.mozillazine.org/viewtopic.php?t=72994&#34; title=&#34;Keyconfig Firefox Extension&#34;&gt;Get the keyconfing extension here&lt;/a&gt; and&#xA;disable the incriminating keys. Many thanks to the author. Now you have working&#xA;command keys. As for the home and end key, I fixed my problem in vimperator,&#xA;since it is an extension I use on all of my firefoxes. Basically the idea is to&#xA;remap home and end (along with +shift variants)) so they fire off the&#xA;command+arrow commands. Here is the code, enjoy :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;imap &amp;lt;Home&amp;gt; &amp;lt;M-Left&amp;gt;&#xA;imap &amp;lt;End&amp;gt; &amp;lt;M-Right&amp;gt;&#xA;imap &amp;lt;S-End&amp;gt; &amp;lt;M-S-Right&amp;gt;&#xA;imap &amp;lt;S-Home&amp;gt; &amp;lt;M-S-Left&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Either run it in the vimperator command line and do a :mkvimperatorrc! or put&#xA;it directly into your configuration file.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Autocopy links of files uploaded to Dropbox public folder with a folder action</title>
      <link>https://yozy.net/2012/02/autocopy-links-of-files-uploaded-to-dropbox-public-folder-with-a-folder-action/</link>
      <pubDate>Sat, 25 Feb 2012 23:54:55 +0000</pubDate>
      <guid>https://yozy.net/2012/02/autocopy-links-of-files-uploaded-to-dropbox-public-folder-with-a-folder-action/</guid>
      <description>&lt;p&gt;This tutorial is largely based on &lt;a href=&#34;http://forums.dropbox.com/topic.php?id=4659&#34;&gt;this post on the Dropbox&#xA;forums&lt;/a&gt;, all credit on the script goes to the original&#xA;author Christian G. My contribution is that this script also invokes a Growl&#xA;message (thus, you will need Growl installed) also, the # character is replaced&#xA;by %23 (because Dropbox does not like it much) Here goes the script :&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code class=&#34;language-applescripts&#34; data-lang=&#34;applescripts&#34;&gt;on adding folder items to this_folder after receiving added_items&#xA;    try&#xA;        set the item_count to the number of items in the added_items&#xA;        if the item_count is equal to 1 then&#xA;            set theFile to item 1 of added_items&#xA;            set theRawFilename to (&amp;#34;&amp;#34; &amp;amp;amp; theFile)&#xA;&#xA;            set tid to AppleScript&amp;#39;s text item delimiters&#xA;            set AppleScript&amp;#39;s text item delimiters to &amp;#34;:&amp;#34;&#xA;            set theFileName to (text item 6 of theRawFilename) as text&#xA;            set AppleScript&amp;#39;s text item delimiters to tid&#xA;&#xA;            set theWebSafeFileName to switchText from theFileName to &amp;#34;%20&amp;#34; instead of &amp;#34; &amp;#34;&#xA;            set theWebSafeFileName to switchText from theWebSafeFileName to &amp;#34;%23&amp;#34; instead of &amp;#34;#&amp;#34;&#xA;&#xA;            set theURL to &amp;#34;http://dl.dropbox.com/u/YOUR_DROPBOX_ID/&amp;#34; &amp;amp;amp; theWebSafeFileName&#xA;            set the clipboard to theURL as text&#xA;&#xA;            tell application &amp;#34;GrowlHelperApp&amp;#34;&#xA;&#xA;                set the allNotificationsList to ¬&#xA;                    {&amp;#34;Public URL&amp;#34;}&#xA;&#xA;                set the enabledNotificationsList to allNotificationsList&#xA;&#xA;                register as application ¬&#xA;                    &amp;#34;CopyDropboxURL&amp;#34; all notifications allNotificationsList ¬&#xA;                    default notifications enabledNotificationsList ¬&#xA;                    icon of application &amp;#34;Dropbox&amp;#34;&#xA;&#xA;                notify with name ¬&#xA;                    &amp;#34;Public URL&amp;#34; title ¬&#xA;                    &amp;#34;Dropbox Public Folder Updated&amp;#34; description ¬&#xA;                    (theURL &amp;amp;amp; &amp;#34; copied to clipboard.&amp;#34;) application name &amp;#34;CopyDropboxURL&amp;#34;&#xA;&#xA;            end tell&#xA;        end if&#xA;    end try&#xA;end adding folder items to&#xA;&#xA;to switchText from t to r instead of s&#xA;    set d to text item delimiters&#xA;    set text item delimiters to s&#xA;    set t to t&amp;#39;s text items&#xA;    set text item delimiters to r&#xA;    tell t to set t to item 1 &amp;amp;amp; ({&amp;#34;&amp;#34;} &amp;amp;amp; rest)&#xA;    set text item delimiters to d&#xA;    t&#xA;end switchText&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;how-to-use-this&#34;&gt;How to use this&lt;/h2&gt;&#xA;&lt;p&gt;First of allyou have to know your Dropbox user ID and change the&#xA;YOUR_DROPBOX_ID to it. This is the number that appears after /u/ in your&#xA;public Dropbox links. Now open the apple script editor and save this script&#xA;into&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;Macintosh HD/Library/Scripts/Folder Action Scripts&lt;/code&gt; as CopyDropboxURL.scpt.&#xA;Next navigate to your Dropbox public folder in finder, right click (or ⌘-click)&#xA;it. Choose Services→Folder Actions Setup&amp;hellip; from the menu. In the menu that&#xA;opens choose the CopyDropboxURL.scpt.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Enable system volume control for a generic USB device in Snow Leopard</title>
      <link>https://yozy.net/2011/06/enable-system-volume-control-for-a-generic-usb-device-in-snow-leopard/</link>
      <pubDate>Mon, 06 Jun 2011 08:00:56 +0000</pubDate>
      <guid>https://yozy.net/2011/06/enable-system-volume-control-for-a-generic-usb-device-in-snow-leopard/</guid>
      <description>&lt;p&gt;This post is mainly targeted at people who have used an X-Fi USB audio card&#xA;with their PCs on Windows or Linux. Many of us got a bad surprise when we&#xA;plugged it into our shiny new Macs and we couldn&amp;rsquo;t even control the volume of&#xA;the device through the system.&lt;/p&gt;&#xA;&lt;p&gt;This particular problem is due to lack of dedicated drivers made by Creative.&#xA;It seems that they only make OS X drivers for cards specially targeted at Macs.&lt;/p&gt;&#xA;&lt;p&gt;Luckily there is a way to work around this limitation using a piece of software called &lt;a href=&#34;http://cycling74.com/products/soundflower/&#34; title=&#34;Soundflower homepage&#34;&gt;Soundflower&lt;/a&gt;. The procedure is very simple, just follow the four steps here:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Download and install SoundFlower (this might require a restart)&lt;/li&gt;&#xA;&lt;li&gt;Set &lt;strong&gt;Soundflower (2ch)&lt;/strong&gt; as your audio output device (hint: you can option (⌥)-click your volume control icon in the menu)&lt;/li&gt;&#xA;&lt;li&gt;Launch Soundflowerbed (it was installed along with Soundflower)&lt;/li&gt;&#xA;&lt;li&gt;In the 2 channel device output options select your USB card.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;And it is done, you can happily use your volume control buttons once again.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://yozy.net/images/soundflower-volume/soundflower_system_output_settings.png&#34; alt=&#34;system-output&#34; title=&#34;Set system output to Soundflower (2ch)&#34;&gt;&#xA;&lt;img src=&#34;https://yozy.net/images/soundflower-volume/soundflower_driver_settings.png&#34; alt=&#34;soundflower-output&#34; title=&#34;Set Soundflower output to your USB card&#34;&gt;&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Global keyboard actions in Snow Leopard without third-party software</title>
      <link>https://yozy.net/2011/05/global-keyboard-actions-in-snow-leopard-without-third-party-software/</link>
      <pubDate>Wed, 04 May 2011 08:00:15 +0000</pubDate>
      <guid>https://yozy.net/2011/05/global-keyboard-actions-in-snow-leopard-without-third-party-software/</guid>
      <description>&lt;p&gt;When I first got to use Mac OS X I have wondered whether it is possible to do&#xA;stuff which I was used to do (more or less) easily on Linux. Among others there&#xA;is the possibility to assign keyboard shortcuts to arbitrary actions (and&#xA;especially shell scripts). I found several tutorials on how to do this, but&#xA;they often include third party software like Quicksilver. Since I want to keep&#xA;my system as vanilla as possible I was searching for a way to do it otherwise,&#xA;and found it.&lt;/p&gt;&#xA;&lt;h2 id=&#34;introducing-services&#34;&gt;Introducing Services&lt;/h2&gt;&#xA;&lt;p&gt;Snow Leopard has this great thing called Services, which is a very simple to&#xA;use way of creating very powerful actions in no time. Now, usually these are&#xA;bound to a specific application or context, but they can be global. Since it is&#xA;much easier to explain something on an example, let us use a simple example.&#xA;Following this article on how to pause iTunes for a short period of time.&lt;/p&gt;&#xA;&lt;h3 id=&#34;step-1&#34;&gt;Step 1&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Open up the &lt;strong&gt;Automator&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Create a New Service.&lt;/li&gt;&#xA;&lt;li&gt;In the &amp;lsquo;service receives selected&amp;rsquo; drop-down box select &lt;strong&gt;no input&lt;/strong&gt; in&#xA;&lt;strong&gt;any application&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;li&gt;In the left sidebar find &lt;strong&gt;Run AppleScript&lt;/strong&gt; and drag it into the workflow&lt;/li&gt;&#xA;&lt;li&gt;Paste the code below on the place where it says &lt;em&gt;(&lt;/em&gt; Your script goes here&#xA;&lt;em&gt;)&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Save the service as &amp;ldquo;Pause iTunes for 5 minutes&amp;rdquo;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The script in question follows:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-applescript&#34; data-lang=&#34;applescript&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;tell&lt;/span&gt; &lt;span class=&#34;nb&#34;&gt;application&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;iTunes&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nb&#34;&gt;pause&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nb&#34;&gt;delay&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;300&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nb&#34;&gt;play&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;end&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;tell&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;In the end the whole Automator window should look like this.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://yozy.net/images/global-mac-shortcuts/Automator-service-example.png&#34; alt=&#34;automator-service-example&#34; title=&#34;Automator service example&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you go to the current application&amp;rsquo;s menu now you should see your service in&#xA;the Services sub-menu.&lt;/p&gt;&#xA;&lt;h3 id=&#34;step-2&#34;&gt;Step 2&lt;/h3&gt;&#xA;&lt;p&gt;Now the only thing that remains is to add a keyboard shortcut for this service.&#xA;Open up System Preferences → Keyboard → Keyboard Shortcuts. In the left panel&#xA;click on Services and then click on the + button under the right panel. In the&#xA;following dialog choose:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Application : &lt;strong&gt;All Applications&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Menu Title : &lt;strong&gt;Pause iTunes for 5 minutes&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Keyboard Shortcut : &lt;strong&gt;F10&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Following shortcut illustrates the result. Note that it is vital that the Menu&#xA;Title chosen is &lt;strong&gt;exactly the same&lt;/strong&gt; as the name under which you have saved the&#xA;service.&lt;/p&gt;&#xA;&lt;p&gt;[Update] New services will be added to the list automatically. The only&#xA;remaining thing is to add a shortcut key. This might be a feature of Lion or&#xA;Mountain Lion as I do not recall it while using 10.6.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://yozy.net/images/global-mac-shortcuts/Automator-service-example.png&#34; alt=&#34;shortcut-asignment&#34; title=&#34;Snow Leopard keyboard shortcut assignment&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;All done, you can now enjoy launching your script anywhere, anytime by pressing&#xA;F10.&lt;/p&gt;&#xA;</description>
    </item>
  </channel>
</rss>
