macOS command-line tools you might not know about
51–60 of 454 posts
Re: macOS command-line tools you might not know about
#52It's ls for metadata. Very helpful for getting quick and scripted access to the date/time when and the latitude/longitude where a photograph was taken.
Also, the say command is a lot more versatile than it seems.
Combined with the ability to save the speech to an audio file, my wife uses it as the disc jockey for her little hobby AM radio station. It introduces the song and does little station IDs and such.
You can customize it with dozens of dozens of voices, some in very high quality.
When a song from her Japanese playlists comes on, it switches to one of the Japanese voices. I don't speak Japanese, so I don't know if it actually translates the DJ words into Japanese, but it sounds pretty close to my untrained ears.
Re: macOS command-line tools you might not know about
#53Great list. Didn't know about pbcopy/pbpaste, very useful. I use open regularly. Often to open a directory in finder and preview a file. Looks like I can just use qlmanage from now on. Not sure I'd use screencapture manually, but I'm sure there are some automations that could benefit from this.
Re: macOS command-line tools you might not know about
#54Re: macOS command-line tools you might not know about
#55Manage the Launch Services database: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister Manage file extended attributes (such as quarantine): xattr Execute a script (AppleScript or JavaScript): osascript -e
Re: macOS command-line tools you might not know about
#56I never knew sips was a thing, cool!
Re: macOS command-line tools you might not know about
#57Neat, I was not aware of `networkQuality`. A good replacement for opening up Speedtest or whatnot when you just want to figure out if the network is slow or something else is up.
Re: macOS command-line tools you might not know about
#58I remember Caffeine used to be a third-party program that would prevent your Mac from sleeping, same behavior as the `caffeinate` here. Were they acquired and incorporated into the OS?
I believe that Caffeine was a fairly simple GUI wrapper for the existing caffeinate command