Artificial Intelligence and You

MacMAD Meeting Topic, Tuesday, March 19, 2024

Artificial Intelligence (AI) has meant different things at different times to different people. It is a moving target. In the 1970s, it meant a machine playing chess. Today, no one would call that artificial intelligence. Now it might be a machine generating an essay, drawing or photograph from a short prompt.

This image of an Apple User Group meeting was generated by AI.

Artificial Intelligence has become vastly more powerful, and it will only continue to get better.

Whether you realize it or not, you are already using Artificial Intelligence in several forms:

  • Facial Recognition – “Face ID”, Photos
  • Recognition of Objects: cat, dog, building, The Eiffel Tower, vehicles, humans
  • Voice and Speech Recognition, e.g. Siri commands
  • Siri Suggestions – AI forecasts what App/Destination/Search you might want now
  • Sound Recognition, e.g. Siri can recognize smoke detector sounds
  • Navigation Apps, driver assist, “self-driving”
  • Language Translation, Apple & Google Translate Apps
  • Speech Generation – Personal Voice, Live Speech, in Accessibility Settings
  • Recognition of facial expressions and gestures – Used in Face Time and the Vision Pro

Face ID is an example of very unobtrusive AI, probably the best kind. You are usually unaware of Face ID unlocking your phone except in the rare situation where your face is obstructed for some reason and it doesn’t unlock.

Apple has dedicated about 1/4 of the on-chip real estate in their new processors to the Neural Engine. This shows a commitment to AI going forward at Apple. The Neural Engine does on-device machine learning.

All Your Internet are Belong to AI1

Much of what you see when you browse the internet is determined by AI.

  • Search Engine Rankings
  • YouTube Recommendation Engine
  • Amazon “Inspired by your Shopping Trends”
  • Video recommendations for Apple TV, Netflix and Amazon Prime

When you do those captchas (“I am not a robot”, “click all images containing a bus”), you are providing training data for AI algorithms.

Generative AI

The new type of AI getting a lot of attention in 2024 is Generative AI, so called because it generates something, whether text or an image.

When you hear about ChatGPT, GPT stands for Generative Pre-trained Transformer. This is a large language model trained on a large amount of text.

This type of AI tool can be used to generate documents like reports, emails, ad copy, blog posts and computer code. The generated text usually looks very good, but you must check it for accuracy.

How Can I Try Out These AI Tools?

It’s early days in this phase of the AI revolution, and things are changing rapidly. Web sites appear and disappear. Companies are bought and sold. Tools change hands and change names. Here is a list of generative AI tools that work as of March 2024.

  • Claude.ai – Account required. Free and paid tiers.
  • The Microsoft Copilot App – May require Microsoft 365 subscription? Includes Designer (for images), Vacation Planner, Cooking Assistant and Fitness Trainer.
  • Microsoft Bing – Copilot web interface
  • Google Gemini – Gemini web interface
  • Typing Mind – accessible via Setapp
  • Photos Revive App – Photo colorization – accessible via Setapp
  • MacGPT – Mac App interface to ChatGPT.

Apple is reportedly negotiating with Google and/or OpenAI to incorporate some of their Generative AI tools into the iPhone.

What uses of Artificial Intelligence might people not know about?

1. **Personalized Medicine:** Al is used to analyze complex medical data and create personalized treatment plans for
patients based on their unique genetic makeup and health history.
2. **Fraud Detection:** Al algorithms are employed by financial institutions to detect patterns of fraudulent activities and
protect customers from identity theft and financial fraud.
3. **Precision Agriculture:** Al is used in agriculture to optimize crop yields by analyzing data on weather patterns, soil
quality, and crop health to improve farming practices.
4. **Smart Assistants:** Virtual assistants like Siri, Alexa, and Google Assistant utilize Al to understand and respond to
user commands, making daily tasks more convenient and efficient.
5. **Autonomous Vehicles:** Al technology powers self-driving cars, enabling them to perceive their environment, make
decisions, and navigate roads safely without human intervention.
6. **Cybersecurity:** Al is used to detect and prevent cyber threats by analyzing vast amounts of data to identify unusual
patterns and potential security breaches in real-time.
7. **Content Creation:** Al can generate content such as articles, music, and artwork, assisting creators in brainstorming
ideas and increasing productivity.
8. **Energy Management:** Al helps in optimizing energy consumption by analyzing data on usage patterns and adjusting
energy distribution to reduce waste and lower costs.
These are just a few examples of the diverse applications of Al that may not be commonly known.
Example of a Prompt and Response from MacGPT

Also worth a look:

Sora – from OpenAI, generates videos from prompts – only pre-recorded demos now

Artificial General Intelligence

Artificial General Intelligence (AGI) doesn’t exist yet. Existing AI software is powerful in certain domains, but it is helpless outside those domains. ChatGPT can write a passable paragraph for a PhD thesis, but it’s not as smart about the world as a five year old. True AGI would have intelligence equal to or better than human intelligence in at least all the domains where humans are knowledgeable.

Here’s Copilot Designer’s response to a request for three yellow ducks and a green goose. It totally failed to include a green goose, or any green bird. It’s really not too bright yet. It draws better than a five year old, but lacks understanding.

One theory is that in order to develop AGI, AI will have to be embodied in a robot where it can gain the experience of the world that a child has.

Is AI a Threat to Humanity?

Scary Robot Drawn by Microsoft Designer / DALL-E 3

There have been a number of topical headlines recently suggesting that AI is a serious threat to the human race. Caution is warranted, as with any new technology, but I believe that the threat isn’t Artificial Intelligence itself, but our own lack of wisdom in deploying it.

Most of our fear of alien or artificial intelligences is that they will be too much like us. We know all too well the human capacity for fear, greed and desire for power.

Artificial Intelligence is likely to lack those things unless we are stupid enough to design them in. Without an equivalent to the more primitive parts of the human brain, robots or AI will lack lust, greed and even an instinct for self-preservation.2

We obviously shouldn’t give an AI control of nuclear weapons, but that has more to do with the danger of such weapons than of AI.

A more realistic concern in the near term is that AI may threaten many people’s jobs. If you write ad copy or blog posts for a living, AI is already coming for your job. If you are an illustrator or photographer, AI can already accomplish many of your tasks in a fraction of the time. Lawyers and computer programmers are probably next, and I am sure there are many other job categories at risk.

Like any other tool, AI can be used by bad people to do bad things. Since it is a powerful tool, it can have a big effect. It could be a propaganda tool without precedent, and will no doubt be used to spread misinformation, fear, uncertainty and doubt on a massive scale.

These are serious social problems. We have already experienced social problems from other aspects of technology such as automation and social media. As a society we need to figure out how to fairly distribute the wealth and other benefits derived from AI and similar technologies and how to protect society from misuse of AI.

  1. https://en.wikipedia.org/wiki/All_your_base_are_belong_to_us ↩︎
  2. Hawkins, Jeff (2021). A Thousand Brains: A New Theory of Intelligence. Basic Books ↩︎

The MacOS System Permission Dialog

Computer users are frequently asked to enter passwords. They are often confused by these requests. Their two most common questions are:

  • Which of my many passwords does it want?
  • Is it legitimate and safe to enter my password here?

The MacOS System Permission Dialog can help you with the answers.

Which Password does it want?

When you see a dialog similar to this, you know it is from your own Mac. It wants either the username and password that you use to sign onto your Mac at startup, or the credentials of an administrator account on the computer.

Installer is trying to install new software. Enter an administrator's name and password to allow this.

So, don’t enter your iCloud password, or the password to any of your other on-line accounts. You should use a username and password for the Mac that you are sitting in front of at the moment.

The details of this dialog may vary. It might say Installer, or some other program, and the wording may vary depending on the situation.

Is it safe?

How do you know it is safe to enter your account password in this dialog? With MacOS, Apple controls the type of dialog boxes and windows that programs are allowed to display. Programs are not allowed to display windows without title bars. That is reserved for system dialogs. Apps can ask the system to display dialogs on their behalf, and text from the App may be included in the dialog, but the overall dialog is controlled by MacOS. You will notice that these system permission dialogs do not have title bars at the top. The usual red, yellow and green dots are not present.

MacUpdater wants permission to update. Enter an administrator's name and password to allow this.

This could still be spoofed to an extent. After all, you are looking at such a dialog box right now, displayed on a web page. Would it be safe to enter your password here? No. Web pages can and do display whatever they want, as do application programs.

Although they will probably pop up in front of some other window, legitimate system dialog boxes can be dragged to the desktop, where they will display in front of your desktop pattern, without any title bar, as seen above. Malicious web sites or programs cannot duplicate this behavior.

However, to make it tricky, you may have to grab them by the very top of the window, where the title bar would be, in order to be able to move them.

The other safety test is really up to you. Even though the dialog itself is legitimate, it may be asking you for a permission you don’t want to grant. For installer permissions, only grant permission if you are knowingly in the process of installing or updating a program. Don’t agree to install a program just because a web site told you to.

Think twice before giving programs special permissions. Does a word game legitimately need permission to access your microphone and camera? Probably not. You shouldn’t grant it unless there is some real, unusual reason.

Administrator privileges are required to make changes to CCC backup tasks. Enter your password to allow this.
Carbon Copy Cloner asking for Administrator Privileges

Above, the application Carbon Copy Cloner is asking for Administrator Privileges. This is a very powerful and sweeping request. You should trust the program and it should have a very good reason before granting this request. Carbon Copy Cloner has a long and good reputation, and it is performing system-level functions, so I choose to give it permission.

There is an exception to every rule. The legitimate dialog below from the System Settings app cannot be moved or dragged. Because it appears in the context of System Settings (a built-in and integral part of MacOS) I trust it anyway.

Privacy & Security is trying to modify your system settings. Enter your password to allow this.

I hope this discussion has given you some useful hints about entering passwords on your Mac. I hope the computer elves were good to you this Christmas and happy New Year to you.

Digitizing Old Photographs

MacMAD Meeting Topic February, 2023

If you have photographs taken before you started using a digital camera, probably before about 2005, those photos may never have been digitized and are not available for viewing and sharing in your on-line digital world.

What’s your best strategy for getting those digitized and into your computer or phone?

Pile of photos

This Could Take a While

Even the small pile of pictures above contains over a hundred photographs. You should expect that digitizing them all will take a while, even in the best case.

Service, Camera or Flatbed Scanner?

There are three basic strategies:

  • 1.) Send them out to a service to be digitized
  • 2.) Digitize them with a flatbed scanner
  • 3.) Digitize them using your iPhone camera or another digital camera

Digitizing services can be expensive but are worthy of serious consideration. They can save you a lot of time and frustration. Because they charge by the photo, you should be selective as to which photos you send them. This is by far the fastest method. If you have a lot of photos and don’t want to spend years working on them, just get your wallet out.

A flatbed scanner gives high-quality results and you are in charge of the quality, the cropping and everything else. You’ll get the best results that your originals, your equipment and your abilities allow.

A scanner with a transparency feature allows you to also scan slides and negatives.

Flatbed Scanner Ready to Scan Negatives

Using your phone or a camera to “scan” or take a photograph of the original can produce reasonably high quality copies. This method has some advantages you should consider:

  • It’s faster than a scanner
  • Can digitize large or awkward photos that don’t fit on the scanner
    • Can digitize photos in a frame
  • You can digitize while traveling without a flatbed scanner
  • Can produce better results for originals printed on matte paper
  • Works if you don’t own a computer

Using a phone or camera can also produce poor results unless you take the time to get proper lighting.

Organize – Before and After

As you take your originals out of the albums or envelopes to be digitized, look for context. Who’s in the photos? Where were they taken? What was the date? You should write on the back of the originals for future reference. Don’t just write “grandmother”. That’s not very helpful. Maybe “Mrs. Mary Jane (Doe) Smith” would be better. Use a non-smearing ink pen that doesn’t require too much pressure to write. I like Bic Round Stic ball-point pens for this.

After digitizing a photo, write something on the back of the photo saying so, like “digitized in 2023”. This will keep you from wasting time or money scanning the same photo again.

Assign long meaningful file names to your photo files. If you give them meaningful names, you and your descendants might be able to find them later. VueScan will create files with a serial number like 2023-02-17-0007. This would be the seventh photo scanned on February 17, 2023. I keep those serial numbers as a suffix to my file names to avoid having multiple photos all with the same name. Suppose I have a bunch of photos of John Doe, all taken in 1999. If I name them “John Doe, 1999”, they would all have the same name which will cause problems when I try to put them into a folder together. But if they have a unique suffix, no problem.

Long file names are allowed, so take advantage of it.

The Best Way to Restore an Old Photograph is to Find a Better Original

Prioritize and Select

Take some time to find the best existing versions of your photos to digitize. That version may be a print, or a negative, or a slide. In the 2000s, some film development services included a CD-ROM with your photos on it. If you find one of those, you can save yourself a lot of time and trouble, although the CD images may not be high-resolution by today’s standards.

Prioritize slides. Slides are often photographic gold. Usually whoever was shooting slides had a nice camera and was a better-than-average photographer. Slides often haven’t been seen since the slide projector broke decades ago. So, there could be some nice surprises. And, if they have been stored in a closed box, they might be cleaner and in better shape than prints which might be torn, faded and dirty. Slide film often captures and preserves color better than print film.

Sort your photos so you are digitizing a batch of similar photos at once. It is easier if you don’t have to change your settings between photos. So, separate the black and white photos from the color photos, and the 3x5s from the 4x6s.

Be selective. Many of your photos are losers. Skip them. Digitize the best versions of each series.

Sample Workflow

  • Scan with VueScan to TIF files in Downloads Folder
  • Add descriptive filenames
  • Crop, adjust and clean-up in Affinity Photo
  • Export final photos as JPG into Download Folder
  • Copy final JPGs to preferred storage folder(s)
  • Delete temporary TIFs and JPGs from Downloads
  • (you do have a backup plan, right?)
VueScan’s Complex “Professional” Options Scanning Negatives
Useful Filter Options in VueScan

The Infrared clean option is good on negatives and slides. It largely eliminates dust. It does require an extra scan step, so takes twice as long to scan. I think it’s worth it for almost all slides and negatives. A similar option is available in other software.

Restore colors and Restore fading can be amazing for old prints. You have to try these to see if they help your specific photos or not. The Restore colors option does a better job than I have been able to do with photo editing software.

Image Capture Screen and Options

Above is the Image Capture software included with MacOS. It is easy to use, and automatically identifies multiple images to be scanned.

Tips for Digitizing with your phone or camera

Find good lighting. Indirect sky light is best, but avoid direct sun. A shady porch where lots of sky is visible is ideal.

If you are setting up your own lights try to position them off to each side of the photo shining at a 45° angle. If you only have one, that’s okay, but one on each side is better.

Don’t use flash unless:

  • You have an off-camera flash
  • You are using the PhotoScan App or similar with anti-glare feature

Flatbed Scanner Example

Epson Perfection V600 $276 at Amazon – Scans Photos, Negatives and Slides

Epson makes good scanners, but their software support for MacOS is pretty terrible. You should plan on using 3rd party scanning software (below) eventually. The Epson scanning software is pretty nice, but whether or not it will work on any given version of MacOS is a gamble.

Scanning Software for Mac

VueScan Software Versions $24.95 to $99.95

VueScan works with almost any scanner model and is kept up to date.

Image Capture (User Guide) – (Image Capture is included with MacOS)

Affinity Photo 2 Photo Editor $69.99 (Not for scanning, just for editing afterwards.) A powerful image editing program.

Mail-In Digitizing Services

Kodak Mail-In Digitizing Box

Memories Renewed – Well Reviewed by Consumer Reports and Wirecutter

Scanning Software for iPhone

PhotoScan IconPhotoScan – (Google) Free in App Store. Removes glare from scan.

Camera App (built-in, comes with iPhone)

Find Duplicate Photos with Gemini 2

A question came up at last month’s MacMAD meeting on how to save space by finding and removing duplicate photos on the Mac.

One way to do this is with Gemini 2 from MacPaw software.

You tell Gemini which folder or folders you want it to scan, including your Photo library. It scans them pretty darn fast.

Scanning Your Files

It finds duplicate files of all kinds, not just photos.

Gemini’s Main Screen with List of Duplicates

You can sort and search these in various ways. You can then select groups of the duplicates for deletion.

Details of a Duplicated Photo

You should be very cautious about deleting duplicates en masse. The duplicates may be in folders belonging to specific applications which expect to find them in those locations. Or, you may want to have duplicates in specific locations for your own organizational purposes.

It probably isn’t worthwhile trying to remove all duplicates. If you can find a few large files that can be deleted, or find entire folders that you no longer need, you may recover a lot of space with a minimum of effort and risk.

Gemini 2 is available on a subscription basis starting at $19.95 per year, or an outright purchase starting at $44.95. It is also available through a subscription to SetApp (also from MacPaw).

Web Browsing With Safari

Here are the slides from the May, 2022 MacMAD meeting on browsing with Safari.

Web Browsers: Chrome, Edge, Safari, Firefox
Search Engines
Anatomy of a URL
Top Level Domain, e.g. .com
Domain Name
Subdomain
Your Internet Environment
ISP: Internet Service Provider
Email Provider
WiFi
Web Sites
Password Manager: Apple Keychain

Use iPhone as Web Cam with Detail

I have a MacMini which has no built-in camera. During the pandemic, I have been doing more on-line teleconferencing (mostly Zoom and Facetime meetings). I have used various cameras and various software to connect them to my computer.

I recently came across Detail, from Detail.co . This application allows you to use your iPhone or iPad as a web camera for your Mac. This is the best solution I have seen yet, and the iPhone has a good-quality camera, so my video looks good.

The Mac application does much more than that, which is both an advantage and disadvantage. It is a disadvantage in that it makes it harder to learn to use. There is a video tutorial on the site. The quick summary is to download the Detail app from the iOS or iPad OS App store on your iPhone or iPad, and also download the app for Macintosh from the web site. The app can work wirelessly, or via a USB cable (recommended).

You may want a tripod adapter for your phone. I bought this one and it seems like a good one. You might want to use that with a small desktop tripod like this, if you don’t have one.

Detail is not free, and they are kind of cagey about the price. I actually don’t know how much or how often they charge. There is a 14 day free trial period. I discovered and got access to Detail through my Setapp subscription, which is excellent for just-in-time discovery of useful, curated apps.

Self Help: How to Find a Lost File

You had an important file, but now you can’t find it anywhere. In this article, we’ll look at tips for finding that lost file. First, for MacOS, and then for iOS/iPadOS.

Finding a file on MacOS

Searching with Spotlight

You might be tempted to search with Spotlight (the magnifying glass icon in your menu bar). Spotlight might find your file, but by default, it returns a lot of results other than files and folders. You might not be able to see the tree for the forest in your Spotlight results. If you visit Spotlight in System Preferences, you will see that Spotlight returns results in up to 20 selectable categories, many of which are not relevant. For instance if you had a file related to a jacket in size 42 long, you might search with Spotlight for 42L. Spotlight will unhelpfully inform you that 42L = 1.48 cubic feet.

Finder Search

You can perform a search in any Finder window by clicking the magnifying glass icon in the upper right of the window, and typing your search term. This is different than Spotlight, and it searches only files.

Beginning a Finder Search for 42L

In the example above, you have typed “42L”. You will see that it has found two files, neither of which actually have 42L in the filename. However, there are two clickable options here that you should consider. If you click the dimmed word Filenames, the search is restricted to only filenames. Otherwise it will find any file that contains the search term. To start with, the search only includes the folder you happened to start in. In this case, that is the Documents folder. If you click “This Mac”, then it will expand the search to your entire computer.

Also, if you click the + to the right side, next to Save, you will get the option to further restrict your search by Kind, Last Opened Date, Last Modified Date, and a great many other attributes. For example, you could select documents whose Kind is Image. That would find only photographs or drawings.

Searching This Mac for all Image files.

By clicking the column headers in the Finder you can sort by Name, Size, Kind, Date Last Opened, etc. This can help bring likely files to the top. Consider searching by Kind, Date, Size, etc., without using a search term. You may have forgotten what the file was named exactly, or it may have been accidentally renamed. By doing this, you may find a file whose name was mangled somehow. If the file is fairly recent, it pays to look at the Recents icon in the Finder sidebar. Maybe you will recognize your file in that list. Again, you might want to sort the list.

Don’t forget to check the Trash. Files in Trash should show up when searching This Mac, but it’s worth a look.

Check the Desktop. Don’t just look at your desktop on the screen. MacOS has a feature called Stacks, which tends to hide things on your desktop. You either need to expand each of those stacks by clicking on them, or else open a Finder window, and visit your Desktop folder directly.

Plan B: Other Places to Search

Maybe the file isn’t actually on your computer, but it exists somewhere else. For example, a lot of Apps like to save files on Cloud Storage of some kind. Here are some ideas of places to look:

  • iCloud Drive
  • Microsoft OneDrive
  • Google Drive
  • Evernote
  • Dropbox
  • Network-Attached-Storage (NAS)
  • USB Stick/Flash Drive
  • Your other computer or phone or tablet
  • Camera Memory Cards
  • Virtual Machines (files in a Virtual Machine won’t be found when searching outside that machine.)

The cloud storage services are often mirrored to your local system, but not always. So, you may need to sign into their web interface and browse the files there.

Plan C: Files in Transit

Think about where your file originated in the first place. Most of the files on your computer, you didn’t create. They came from somewhere else. If someone sent you that file, it may still be available. If it’s not too embarrassing, you can always ask the sender to send it to you again. Otherwise, check your messaging apps and services:

  • e-Mail Inbox(es)
  • Apple Messages App
  • Facebook Messages
  • What’s App
  • Hangouts
  • We Chat
  • Signal

The file may still be in the message by which it originally arrived. If you originally downloaded the file from the internet, it’s probably easiest to just find it again with Google and re-download it.

If you created the file locally, did you ever send it to anyone else? If so, a copy of the file may exist in your outbox on one of the above services. Or, you can ask a recipient to send you back a copy.

Searching for a lost email is another topic in itself to be covered in a later post.

Plan D: Recover from Backup

Maybe the lost file used to be on your computer, but it was accidentally deleted. This is the scenario where backups come in handy, especially Time Machine backups. You have been performing regular backups, right?? Well, even if you haven’t, there is a good chance that Time Machine has saved your bacon. By default, Time Machine keeps some backup versions of files on your local computer even if you have never performed a Time Machine backup to an external drive (like you should!).

To recover files from Time Machine, it helps if you have some idea where in your file system the file was located. If you’re not sure, you can start with the usual suspects like the Documents folder, the Desktop or the Downloads folder. Open that folder now, in the Finder. Attach your Time Machine backup drive if you have one. Make sure that your folder of interest is the active Finder Window.

Click the Time Machine icon in the menu bar (it looks like a clock). Select Enter Time Machine. This will open sort of a time-tunnel view of that particular Finder window.

You can navigate back to some older version(s) of that folder and look for your file. If you haven’t backed up to an external drive, there may be very few snapshots available for viewing.

Finding a File on iOS or iPadOS

The key place to look for files on iOS is the Files App. It has a blue folder icon. Like MacOS, it has a Recents view which can be helpful. It can show files stored directly on your device as well as files stored on iCloud Drive. You may also have various other cloud services folders under Files. There are also the Shared, Recently Deleted (Trash), and Downloads folders. These are all worth checking.

In iOS or iPadOS, you can search for a file by swiping down from the center of the home screen. This will bring a search text box onto the screen as well as an on-screen keyboard. You can then search by typing or by voice.

I hope you were able to find your lost file, or at least to find some hints useful for next time.

Lessons Learned

I use an external drive with my Mac to supplement the internal storage. I have been using the external drive primarily to store my Photos Library and iTunes Library, but I have a lot of other files there also. (Here’s an article about putting your Photos Library on an external drive.)

I bought a new 1TB External SSD to replace the mechanical 1TB drive I had been using. I figured this would be a nice speed-up, and more in line with what my Mac is capable of.

SSD next to 3.5 inch External drive
The SSD is Small

From the photos on-line when I ordered the SSD, I expected it to be larger — about the size of a regular 3.5″ external drive. It is much smaller. It’s about the size of a stack of four or five credit cards. This would be a great thing for travel.

I knew that I should format a new SSD with the newer APFS format for use with MacOS (currently 10.15 Catalina). So, after reading up on that, I fired up Disk Utility, selected APFS, and hit Format. I immediately realized my mistake. I was formatting my original external drive with my data on it, not the new one! It only took a few seconds to lose everything on that drive.

Lesson Learned: Make Very Sure Which Drive You are Formatting!

The good news is that I had a backup. (You have backups, right?)

Lesson Learned Previously: Always Have Backups

After initially trying to restore from backup using Carbon Copy Cloner, I ended up just copying the files to the new SSD using the Finder. But I didn’t have enough space on the drive and deleting big files and folders didn’t seem to make any difference in the amount of free space. I finally found that Carbon Copy Cloner had created some invisible space hogs on that drive called Snapshots.

Lesson Learned: If Deleting Files Doesn’t Increase Free Space, Look for Snapshots

Snapshots can also be created by Time Machine.

Lesson Learned: CCC Creates Snapshots which you can remove from within CCC.

Once I got rid of the snapshots, I was able to restore everything to the new drive easily.

Now I wanted to make some changes to help prevent similar accidents in the future. I give my drives unique descriptive names. I also wanted to give my hard drives unique icons. Any external drive I attach normally shows up with the same generic icon. If they all look alike, it makes mistakes like formatting the wrong drive more likely. I used icons that physically resemble the drives they represent, but you can use pictures of your cat, or whatever images you like.

I found this article explaining how to change the icon of drives. I ended up finding a lot of nice icons at Deviant Art. Often, the icons or images you find online are not in the correct format for MacOS. I used Image2Icon to convert them. You can find it on the Mac App Store, but I already had it via SetApp.

Since subscribing to SetApp, I always look in there first for any unique Apps I need. I usually find something that does what I want.

So, now my drives have unique icons like this:

Icons

Lesson Learned: You can and should give your external drives unique icons.

Besides external hard drives, you can also assign special icons to thumb drives or camera cards. Again, that seems very helpful in keeping them straight in your mind.

However, I have found that the procedure of pasting a new icon onto the icon of my hard drives does not work for some drives.

I found that for some drives, you can paste the icon file, but for other types of drives, you must copy and paste an actual image. If pasting the icon file doesn’t work, you can open the icon image using preview, make a selection, copy that, and paste that into the icon in the drives “Get Info” window. That seems to work.

I’m still finding that I can’t change the icon of partitions on an APFS partitioned drive. If anyone knows how to do this, please leave a comment. Thanks.

Digitizing a Book

Recently, I digitized some historic school yearbooks and I want to share some tips on how I did that. It was less work than I thought, and it went pretty fast due to some automation. There is certainly more than one way to do this, but this worked for me.

My goals going in were:

* Good Quality Images
* PDF Output with Searchable Text
* A Separate Image in the final document for each page in the book 
* Automate as much as possible

I used a DSLR camera to photograph the pages. I’m not going to go into a lot of detail on the photography aspect, although it is important. You want a lot of light coming from an angle. I used off-camera flash, with a wireless flash trigger. The camera and the flash were on tripods, and the yearbook was on a low coffee table. The camera was looking straight down onto the book. There are many camera settings and lighting settings that will work.

My Camera Settings

I wanted to be able to go through the entire book and not have to do anything else except turn a page and click the shutter. A wireless remote for your camera helps, although for the last book I digitized, I couldn’t find my remote and did it manually, with a 2-second delay to prevent camera shake. That was not too bad.

I taped some rulers to the table to keep the book firmly in the same position so it wouldn’t move between shots.

To save time, I photographed two facing pages at a time, on one image. These were separated later in software. There was plenty of resolution for this to still yield a quality image.

I set my camera to record JPEG images rather than RAW, because they are smaller and easier to deal with, and because I knew I had the exposure correct and wouldn’t need to adjust it in software.

Software Tool Kit

Affinity Photo 
Renamer 
PDFpen  
SetApp  (Renamer and PDFpen are available in SetApp) 
Workflow

I brought the camera images onto my Mac. Then I used the Affinity Photo App to separate and crop the images of the individual pages. I used two main features of Affinity Photo: Macros and Batch Jobs.

First I recorded a macro. I selected an image about 1/4 of the way through the book. I recorded a macro in which I cropped and rotated the left side of that image as a single page. I saved that macro as something like YBCropLeft. Then I repeated the process for the right-hand image, and saved that macro as YBCropRight. But I didn’t save any changes to any images yet.

Because of the way a physical book lies on the table, the ideal crop for all pages is not identical. To mostly compensate for this, I went through this process twice for each book, once for the first halt, and again for the second half. Each time I picked an image about half-way through that half of the book as my prototype for recording the macros. The first prototype was 1/4 into the book, and the second prototype was 3/4 into the book.

Now I used the Batch Job feature of Affinity Photo, which is in the menus at File:New Batch Job…
I dragged all the images from the 1st half of the book into the sources pane. I selected the YBCropLeft macro (and Applied it). I clicked “Save as JPEG” and picked a new, different folder for the output files.

When you run the batch job, you’ll be amazed at how quickly it processes all of those files. The resulting files will still have the same names that came out of the camera, e.g. IMG_1234.jpeg. But, now they are cropped to the left side only.

Affinity Photo doesn’t give you any naming options for the output of a batch job. This is where Renamer comes in. I used Renamer to quickly add an “L” to the end of all the output file names. So, for example, IMG_1234.jpeg became IMG_1234L.jpeg. This is so we can keep them straight and don’t have two files both with the same name.

Now, repeat the batch job, this time using the YBCropRight macro. Put the output into another new folder.

Again, use Renamer. This time, rename all the right side files to have an “R” at the end, so the names will become something like IMG_1234R.jpeg.

So, now, we repeat the entire process for the 2nd half of the book. Record two new Left and Right macros. Run two new batch jobs, sending the output to yet another pair of empty folders. Rename them to L and R as appropriate.

Now, copy all the R files and the L files from both halves of the book into one big folder. There shouldn’t be any duplicate file names. “L” happens to alphabetize ahead of “R”, so, the left side of each image will be alphabetically just ahead of the right side of that image, which is exactly what we want.

Now, if you had any oddball pages that didn’t fit the pattern, go ahead and digitize them, and contrive a file name so that they fit in the correct spot. For example, you might name the image of the front cover something beginning with “A”, so it will be in the front, and the back cover something like “Z”, so it will come last. If your book has a centerfold or map insert or similar, copy it separately and name it something that puts it at the appropriate spot in the alphabetical list of images. Or, you can just wait and insert it into the PDF at the appropriate place.

Now is the time for PDFpen. Open PDFpen and open a blank, new document. In a Finder window, select all the images (I had hundreds of them, one per page, and drag them all to the empty PDFpen document window. PDFpen will just slurp all those into one big PDF. The free Apple App Preview might be able to do this step also, but it didn’t seem as robust about it as PDFpen.

Proofread the document, making sure the pages are all in the right place and are all right-side-up, etc. PDFpen makes it easy to drag pages into the order you want, if they are incorrect for some reason.

Save your work.

The feature that we really needed PDFpen for is OCR (Optical Character Recognition). This will allow turning a bunch of pixels into searchable and selectable text in your document. For some reason, PDFpen hides this powerful feature with a weird User Interface quirk. If you look at the Edit menu in PDFpen, you will see OCR Page. But, we want to go ahead and OCR the entire document! That option isn’t visible unless you press the Option key. Then you will see the OCR Document item under the edit menu.

Go ahead and do that. It takes a few minutes, depending on size, and gives a “bing” when it is done.

Save your work again. This is your final, searchable PDF document.