Skip to content

Revisting old-school stock quotes

Back in 2020, I explained how to use Terminal to display stock quotes. Once set up, it looks something like the image at right, though that's a four-year old screenshot, so the prices are way off!

In a follow-up post, I showed how to quickly chart any of the stocks in your list. I've moved to a new Mac since then, which means (as always for me with a new Mac), I set it up from scratch.

Sometimes not everything makes the cut for the new Mac; in this case, my Terminal quotes were one of the things that didn't make the cut.

But I recently decided I wanted them back, and the good news is that it's gotten a bit simpler in four years since I last wrote about this. And I took the time to improve the stock charting macro, too.

Read on if you're interested in geeky Terminal stock quotes…

[continue reading…]





Fix a broken search in Photos

I was having some issues with my desktop photos (which I load from Photos) not working properly, and I noticed that one particular photo wouldn't preview in the Wallpaper System Settings panel. I noted the name, searched for it in Photos, and came up with no matches. Then I tried other searches, for photos I knew were there as I could see them onscreen, and still, no matches. Clearly Photos' search was broken.

I tried the (long, slow, painful) photo library rebuild process, but still, no search.

After much digging, I found a solution that works, which is to force Photos to rebuild its search database. Here's how to do that:

  1. Make sure you have good backup of Photos before you start, just in case.
  2. Also make sure you quit Photos before proceeding.
  3. In Finder, navigate to your Photos.library file and right-click on it. Select Show Package Contents from the pop-up menu.
  4. In the new window that opens, open the database folder. Inside of that folder is a search folder. Delete it, but leave the database folder open.

That's it, you're (almost) done. Now launch Photos, and it will start rebuilding the search database. This can take a while, depending on the size of your database—it took about five or so minutes for my 65,000ish image collection. There's also no onscreen indication that anything is happening, so use Finder: Open the newly-created search folder in Finder, and check the size of the psi.sqlite file. When the size stops changing, the rebuild is done.

I found this answer in a post by Michelle Lyons in this Apple Discussiosn thread. Michelle notes they found the answer elsewhere, but don't link to that source, so I don't know who originally discovered this. All I know is it worked for me!



Undocumented find: A great Mac-compatible flightstick

The VelocityOne Flightsticktl;dr version: I highly recommend the Turtle Beach VelocityOne Flightstick (right) for use with X-Plane on the Mac. Despite not being advertised as Mac-compatible, it works incredibly well, and at only $129 on Amazon, is a very good deal.

There are tons of buttons, three separate analog axes, a mouse and display built into the top of the stick, LED lighting (which you can also disable), and much more. Keep reading for a lot more detail, but if you're looking for a good Mac-compatible Flightstick, I'm over a year into my VelocityOne, and haven't had any issues yet.


I recently built myself a new gaming PC—Frankenmac was nearly seven years old, and was incapable of running the games I wanted to play with any sort of decent framerates. I won't bore you with the details of the build, but the perforance jump from an Nvidia 1080 to Nvidia 4080 graphics card was very impressive!

My main gaming outlet—on both my Mac and my PC—is flight simulation. On the Mac (or PC), it's X-Plane, plus Microsoft's Flight Simulator on the PC. As I don't have a lot of spare desk space, or the desire to spend a ton of money on flight peripherals, I control the simulators with a flightstick1A joystick with features specific to flight sims, such as a yaw axis..

[continue reading…]



What a long strange trip it was…

I was in Washington, DC for the last week or so, visiting some relatives and acting like a tourist. I flew home last night, and before departure, the pilot announced the flight would take a bit longer than usual—five hours and 40 minutes—due to some routing for weather. In the end, it was almost another hour more than that, taking 6:27 from gate to gate.

After the announcement, I checked the weather map just before we departed, and indeed there were a couple storms in the midwest:

I figured the rerouting was to head a bit north of the ideal path, towards Minneapolis, to duck between the storms. Or maybe further north, into Canada. Oh how wrong I was!

[continue reading…]



I despise this icon

That ugly garish purple travesty shows up in the menu bar whenever your screen is being recorded by any number of apps. From Apple's perspective, they probably consider it a good thing, as it lets a user know their screen is being recorded, and I understand that logic.

But it also shows up when you record your own screen via an app such as ScreenFlow. I find it incredibly intrusive, and there's no option for a user to say "Yes, Apple, I know my screen is being recorded—because I myself started the recording!—please disable that ugly purple icon in my menu bar."

Left in place, the purple icon screams for attention any time it's onscreen, regardless of what you're trying to show in your screen recording. It's unlike every other item in the menu bar, and at least for me, my eye is constantly drawn to it.

So please, Apple, let the user disable that menu bar icon. A logical way to do this would be to show a "Disable this one occurrence" menu item when the menu bar icon is clicked. That way, it's not a blanket override, but you could easily banish it for a given recording.

Until that happens, however, we (all two of us) here at Many Tricks so dislike the icon that we've implemented a workaround, but it's not ideal.

[continue reading…]



Remove the AI bloatware from Logitech’s mouse driver

Note: Newer versions of LogiOptions+ have an on/off switch built into the app; find it in the app's Gear icon. The following is left as a historical footnote in the annals of the societal takeover by AI.

I absolutely love Logitech's Mac MX Keys keyboard and MX Master mouse (though I've now updated to version 3 of the mouse). And generally, their software has been pretty good, too.

But a recent update added an "AI Prompt generator" feature to the mouse side of things, which is absolute garbage—I'm not saying it's bad, as I've never tried it. It's garbage as in there's no reason my mouse needs an AI prompt generator connected to a button. Even worse, as Stephen Hackett discovered, it creates a folder (at the top level of your home folder, no less!) with the ugly name of ai_overlay_tmp.

Thankfully, when Stephen posted about this on Mastodon, user @flipneus posted the solution. And in case that post ever goes away, here it is:

In Finder, open the top-level Library → Application Support folder, then navigate to Logitech → LogiOptionsPlus, and open app_permission.json in your favorite pure text editor. Add a comma after the last } on the line before the final }, then add these lines:

 "aipromptbuilder": {
  "value": false
 }
}

When done, the end of the file should look like this (though the commands in yours may differ):

...
  },
 "backlight": {
  "value": true
 },
 "aipromptbuilder": {
  "value": false
 }
}

The important part is the added comma after (in my file) the backlight-related section. Save the file when done editing, and reboot.

After the reboot, you can delete the ai_overlay_tmp folder—and there won't be an AI generator option in the Logi Options+ app any more. (Alternatively, Stephen points out you can use SteerMouse to program the buttons on the Logitech.)

Thank you, Stephen and @flipneus!



A simple AppleScript to reveal System Settings’ anchors

I stumbled upon this simple AppleScript while looking for something else, but it's incredibly useful for scripting System Settings…so I'm posting it here in case the original site ever goes away.

To get the names of all the anchors for a selected pane in System Settings, just run this in Script Editor:

Run that on the Desktop pane, for instance, and the output is this:

{anchor "Dock" of pane id "com.apple.Desktop-Settings.extension" of application "System Settings", anchor "HotCorners" of pane id "com.apple.Desktop-Settings.extension" of application "System Settings", anchor "MenuBar" of pane id "com.apple.Desktop-Settings.extension" of application "System Settings", anchor "MissionControl" of pane id "com.apple.Desktop-Settings.extension" of application "System Settings", anchor "Shortcuts" of pane id "com.apple.Desktop-Settings.extension" of application "System Settings", anchor "StageManager" of pane id "com.apple.Desktop-Settings.extension" of application "System Settings", anchor "WindowsApps" of pane id "com.apple.Desktop-Settings.extension" of application "System Settings"}

With that information, you can jump directly to a given area in AppleScript with code like this:

I'd always wondered how people found the anchor names, and now I know.



Create a Time-Machine-like backup of Keyboard Maestro macros

I use Keyboard Maestro a lot—a quick search here reveals how often I write about it, and I use it much more than I write about it.

I back up my macros reliably, as part of my overall backup plan. I also sync them between my Macs. And a while back, that caused an issue: Between the regular backups (Time Machine and removable external drive), I had a sync issue and I lost a few hours' worth of work on a new macro, and some untold number of old macros vanished. I recovered the older macros, but the new work was just gone.

So I set out to find a better backup solution for my macros.

I wanted a tool that created something close to versioned backups that were browsable in Finder, that didn't take a ton of drive space, and that made it super-simple to restore any single macro or macro group*Time Machine backs up the entire macros file, not individual macros or groups from some point in history.

I also wanted it to be completely risk-free to use, never modifying my macros in any way (so no import tool in the macro). I wanted Keyboard Maestro Time Machine, basically. As I couldn't find an existing solution that worked in that manner, I wrote my own.

[continue reading…]



The macOS’ version of the cp Unix command won’t create links

 
Update: Apple fixed this in macOS 14.4; the cp command can once again create hard links.

I ran into this while working on a Keyboard Maestro macro that creates hard links: The macOS version of cp won't create links, at least not in Sonoma. In Ventura, it works even though it throws the same error as it does in Sonoma.

Copying as hard links is part of the cp feature set, fully covered in its man pages. But it doesn't work in macOS. To confirm, try this:

When I ran into this, I searched and discovered that someone else had run into the same issue,1Apple Developer login required but that's the only mention I could find.

I have filed this bug as FB13255408 with Apple, and I'm hopeful they fix it soon. There is a workaround, obviously: Use ln instead. This works fine for individual hard links, but using cp to quickly copy an entire folder as hard links is a nicer implementation.