<?xml version="1.0" encoding="utf-8"?> 
<rss version="2.0"
  xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
  xmlns:atom="http://www.w3.org/2005/Atom">

<channel>

<title>Dev's notes: posts tagged macos</title>
<link>https://renset.dev/tags/macos/</link>
<description>macOS &amp; Linux tweaks, hacks, and some random thoughts</description>
<author></author>
<language>en</language>
<generator>Aegea 11.3 (v4134)</generator>

<itunes:subtitle>macOS &amp; Linux tweaks, hacks, and some random thoughts</itunes:subtitle>
<itunes:image href="" />
<itunes:explicit></itunes:explicit>

<item>
<title>🏞 Force macOS Photos.app to download whole iCloud library</title>
<guid isPermaLink="false">6</guid>
<link>https://renset.dev/all/how-to-force-the-macoss-photos-app-to-download-whole-icloud-libr/</link>
<pubDate>Fri, 10 Jun 2022 23:26:36 +0100</pubDate>
<author></author>
<comments>https://renset.dev/all/how-to-force-the-macoss-photos-app-to-download-whole-icloud-libr/</comments>
<description>
&lt;h2&gt;Problem&lt;/h2&gt;
&lt;p&gt;Many, many times I had issues with iCloud photos syncing. The last time I tried to save my whole Photos library (~180GB) on an external SSD drive with no luck: some originals for the latest photos were saved, while another 99% of data was still in the cloud only. What is important is that the settings were correct: I ticked ‘Download Originals to this Mac’, but this didn’t change anything.&lt;/p&gt;
&lt;div class="e2-text-picture"&gt;
&lt;img src="https://renset.dev/pictures/CleanShot-2022-06-10-at-16.23.49@2x.png" width="700" height="492" alt="" /&gt;
&lt;/div&gt;
&lt;p&gt;It drove me nuts completely because I was planning to work with my new travel clip, so I needed all my photos and videos on hand, locally.&lt;/p&gt;
&lt;p&gt;After many attempts to find a workaround, I realized that ‘smart’ algorithms mainly cause these issues, but not poor Wi-Fi/internet connection, or low bandwidth on iCloud infrastructure (ha-ha).&lt;/p&gt;
&lt;p&gt;&lt;i&gt;At the same time, I’m still not ready to use another cloud storage to save &amp; sync my photo library. iCloud’s native look &amp; feel and fair monthly prices are the benefits that still make me use it for a while.&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;Now I’m thinking about a pet project, that will allow me to force synchronization of the Photos library on my Mac using &lt;a href="https://developer.apple.com/documentation/photokit"&gt;Apple Photokit&lt;/a&gt;. According to several forum threads, this app will be useful for many Apple users.&lt;/p&gt;
&lt;h2&gt;Solution&lt;/h2&gt;
&lt;p&gt;As for now, fortunately, I’ve finally found an easy way to download all my iCloud photos using 3rd party tool called &lt;a href="https://github.com/RhetTbull/osxphotos"&gt;osxphotos&lt;/a&gt;. This is a powerful command-line utility to work with your iCloud photos. It doesn’t have a special command like ‘store all my photos locally’, or ‘force sync all my photos with iCloud’, however, you can run an export command with specific attributes which will allow you to download all photos without actual exporting, and it works!&lt;/p&gt;
&lt;h2&gt;6 easy steps&lt;/h2&gt;
&lt;ol start="1"&gt;
&lt;li&gt;Open Terminal (search for Terminal in Spotlight or look in /Applications/Utilities)&lt;/li&gt;
&lt;li&gt;Download and install &lt;a href="https://brew.sh/"&gt;Homebrew&lt;/a&gt; – cool CLI package manager for Mac:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class="e2-text-code"&gt;&lt;code class=""&gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&lt;/code&gt;&lt;/pre&gt;&lt;ol start="3"&gt;
&lt;li&gt;Using Homebrew, download and install pipx – package manager for python:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class="e2-text-code"&gt;&lt;code class=""&gt;brew install pipx&lt;/code&gt;&lt;/pre&gt;&lt;ol start="4"&gt;
&lt;li&gt;Install osxphotos:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class="e2-text-code"&gt;&lt;code class=""&gt;pipx install osxphotos&lt;/code&gt;&lt;/pre&gt;&lt;ol start="5"&gt;
&lt;li&gt;Once completed, create temp folder:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class="e2-text-code"&gt;&lt;code class=""&gt;mkdir ~/osxphotosTemp&lt;/code&gt;&lt;/pre&gt;&lt;ol start="6"&gt;
&lt;li&gt;Then run export command:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class="e2-text-code"&gt;&lt;code class=""&gt;osxphotos export ~/osxphotosTemp --dry-run --download-missing --use-photokit --verbose&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Command explanation:&lt;br /&gt;
&lt;b&gt;osxphotos export&lt;/b&gt; – run export command. In our case we don’t need to perform actual export, that’s why we also adding &lt;b&gt;--dry-run&lt;/b&gt; param&lt;br /&gt;
&lt;b&gt;~/osxphotosTemp&lt;/b&gt; – we need to specify some folder for ‘export’. It’ll stay empty, since &lt;b&gt;--dry-run&lt;/b&gt; param is provided&lt;br /&gt;
&lt;b&gt;--dry-run&lt;/b&gt; – tell osxphotos to simulate the export process without actual exporting. Despite this, originals will still be downloaded from iCloud&lt;br /&gt;
&lt;b&gt;--download-missing&lt;/b&gt; – our key to solving the issue – all missing photos and videos will be downloaded from iCloud servers&lt;br /&gt;
&lt;b&gt;--use-photokit&lt;/b&gt; – Apple’s Photokit will be used&lt;br /&gt;
&lt;b&gt;--verbose&lt;/b&gt; – make osxphotos display sync details&lt;/p&gt;
&lt;table cellpadding="0" cellspacing="0" border="0" class="e2-text-table"&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;ℹ️&lt;/td&gt;
&lt;td&gt;If you have a very large photo library, something could go wrong during command execution. You can re-run the command again and again until the whole library will be synced to your Mac.&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</description>
</item>

<item>
<title>🌅 Convert HEIC to JPEG in one click (macOS)</title>
<guid isPermaLink="false">3</guid>
<link>https://renset.dev/all/how-to-convert-heic-to-jpeg-in-one-click/</link>
<pubDate>Fri, 12 Mar 2021 18:50:00 +0100</pubDate>
<author></author>
<comments>https://renset.dev/all/how-to-convert-heic-to-jpeg-in-one-click/</comments>
<description>
&lt;p&gt;By default, photos made with the iPhone camera app are saved in HEIC format. Your Apple devices can work with HEIC files like a charm, however, there are still many cases when you may need to convert these photos into JPEG or other popular formats.&lt;/p&gt;
&lt;p&gt;Fortunately, there is a simple way to do that with quick actions in the Finder context menu. Here is how we can add it.&lt;/p&gt;
&lt;ol start="1"&gt;
&lt;li&gt;Open the &lt;b&gt;Automator&lt;/b&gt; app&lt;/li&gt;
&lt;li&gt;Create a New document (select Quick Action as a type of document)&lt;/li&gt;
&lt;li&gt;Select the &lt;b&gt;Photos&lt;/b&gt; category in &lt;b&gt;Library&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Drag’n’drop &lt;b&gt;Change Type of Images&lt;/b&gt; into &lt;b&gt;Actions&lt;/b&gt; area&lt;/li&gt;
&lt;li&gt;The &lt;b&gt;Alert&lt;/b&gt; window may suggest you add an additional action to copy the original files. If you want to save the original files, click “Add”.&lt;/li&gt;
&lt;li&gt;Select JPEG as the target format&lt;/li&gt;
&lt;li&gt;Select the type of files (Images) and application&lt;/li&gt;
&lt;li&gt;Save and select the name of the quick action&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Steps 3-7 are explained in one &lt;a href="https://renset.dev/pictures/CleanShot-2021-03-12-at-20.26.19@2x.png"&gt;screenshot&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;As a result, you’ll get the “Convert to JPEG” action in the image context menu:&lt;/p&gt;
&lt;div class="e2-text-picture"&gt;
&lt;img src="https://renset.dev/pictures/CleanShot-2021-03-12-at-20.38.55.gif" width="800" height="504" alt="" /&gt;
&lt;/div&gt;
</description>
</item>


</channel>
</rss>