<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Security on yozy//NET</title>
    <link>https://yozy.net/tags/security/</link>
    <description>Recent content in Security on yozy//NET</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 22 Oct 2016 13:13:43 +0000</lastBuildDate>
    <atom:link href="https://yozy.net/tags/security/feed.xml" rel="self" type="application/rss" />
    <item>
      <title>Unprotect password protected Word documents</title>
      <link>https://yozy.net/2016/10/unprotect-password-protected-word-documents/</link>
      <pubDate>Sat, 22 Oct 2016 13:13:43 +0000</pubDate>
      <guid>https://yozy.net/2016/10/unprotect-password-protected-word-documents/</guid>
      <description>&lt;p&gt;It is always annoying when people expect you to collaborate with them and they send you locked files.&lt;/p&gt;&#xA;&lt;p&gt;This trick only works for documents that are protected for &lt;strong&gt;Review&lt;/strong&gt;. Not when you can not even open them.&lt;/p&gt;&#xA;&lt;p&gt;So, let us assume you have a &lt;code&gt;Protected.docx&lt;/code&gt; file that looks something like this. Notice the disabled &lt;em&gt;Delete Comment&lt;/em&gt;, &lt;em&gt;Accept Changes&lt;/em&gt; and so buttons.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://yozy.net/images/unprotect-word/protected-document.png&#34; alt=&#34;Sad grey icons&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;step-1-open-the-box&#34;&gt;Step 1: Open the box&lt;/h2&gt;&#xA;&lt;p&gt;A good thing to know is that .docx (and .xlsx) files are just zipped folders.&lt;/p&gt;&#xA;&lt;p&gt;Rename the &lt;code&gt;Protected.docx&lt;/code&gt; file to &lt;code&gt;Protected.zip&lt;/code&gt; and unzip it. You will obtain something that looks like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://yozy.net/images/unprotect-word/file-contents.png&#34; alt=&#34;Docx folder contents&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;step-2-tinker-with-the-contents&#34;&gt;Step 2: Tinker with the contents&lt;/h2&gt;&#xA;&lt;p&gt;Open the file &lt;code&gt;word/settings.xml&lt;/code&gt;. Its contents will look somewhat like this (except there will be more of it and everything will be on the same line):&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;cp&#34;&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;UTF-8&amp;#34; standalone=&amp;#34;yes&amp;#34;?&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;w:settings&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;xmlns:mc=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;http://schemas.openxmlformats.org/markup-compatibility/2006&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;xmlns:o=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;urn:schemas-microsoft-com:office:office&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;xmlns:r=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;http://schemas.openxmlformats.org/officeDocument/2006/relationships&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;xmlns:m=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;http://schemas.openxmlformats.org/officeDocument/2006/math&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;xmlns:v=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;urn:schemas-microsoft-com:vml&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;xmlns:w10=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;urn:schemas-microsoft-com:office:word&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;xmlns:w=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;http://schemas.openxmlformats.org/wordprocessingml/2006/main&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;xmlns:w14=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;http://schemas.microsoft.com/office/word/2010/wordml&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;xmlns:w15=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;http://schemas.microsoft.com/office/word/2012/wordml&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;xmlns:sl=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;http://schemas.openxmlformats.org/schemaLibrary/2006/main&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;mc:Ignorable=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;w14 w15&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&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;w:zoom&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:percent=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;100&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;/&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;w:proofState&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:spelling=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;clean&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:grammar=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;clean&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;/&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;w:trackRevisions/&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;w:documentProtection&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:edit=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;trackedChanges&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:enforcement=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;1&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:cryptProviderType=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;rsaFull&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:cryptAlgorithmClass=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;hash&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:cryptAlgorithmType=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;typeAny&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:cryptAlgorithmSid=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;4&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:cryptSpinCount=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;100000&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:hash=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;1+kEXOhPYpKExv2F8dIx9VCN5Ps=&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:salt=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;aOdV7QoW4ZJW3KVDxd7jBg==&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;/&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;w:defaultTabStop&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:val=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;720&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;/&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;w:characterSpacingControl&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:val=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;doNotCompress&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;/&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;w:savePreviewPicture/&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;w:compat&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;w:useFELayout/&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; ...&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Notice the&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;w:documentProtection&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:edit=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;trackedChanges&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:enforcement=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;1&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:cryptProviderType=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;rsaFull&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:cryptAlgorithmClass=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;hash&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:cryptAlgorithmType=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;typeAny&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:cryptAlgorithmSid=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;4&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:cryptSpinCount=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;100000&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:hash=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;1+kEXOhPYpKExv2F8dIx9VCN5Ps=&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;w:salt=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;aOdV7QoW4ZJW3KVDxd7jBg==&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;this is the source of our woes. Now, simply remove the characters between &lt;code&gt;&amp;lt;w:documentProtection&lt;/code&gt; and the first &lt;code&gt;/&amp;gt;&lt;/code&gt; you encounter after it. Save the file.&lt;/p&gt;&#xA;&lt;h2 id=&#34;step-3-put-the-box-back-together&#34;&gt;Step 3: Put the box back together&lt;/h2&gt;&#xA;&lt;p&gt;Now, zip the folder back again. It is important that you compress the files as they were: the folders &lt;code&gt;word&lt;/code&gt;, &lt;code&gt;_rels&lt;/code&gt;, &lt;code&gt;docProps&lt;/code&gt; and the file &lt;code&gt;[Content_Types].xml&lt;/code&gt; are on the top level of the zip (i.e.: not in a subfolder that was probably created when you unzipped the original file). Let us call the new file &lt;code&gt;Unprotected.zip&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Finally, rename the file back to &lt;code&gt;Unprotected.docx&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;step-4-look-into-the-box&#34;&gt;Step 4: Look into the box&lt;/h2&gt;&#xA;&lt;p&gt;And voilà:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://yozy.net/images/unprotect-word/unprotected-document.png&#34; alt=&#34;Sad grey icons&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Note: Word might complain about the document being corrupted, simply choose &lt;em&gt;Open Anyway&lt;/em&gt; and re-save the file again.&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>
  </channel>
</rss>
