TextEdit and Blank Documents

From Mountain Lion and beyond, launching TextEdit results in being confronted with the Document Picker. Fortunately, the old behavior can be restored by running a simple defaults write command in Terminal.

defaults write -g NSShowAppCentricOpenPanelInsteadOfUntitledFile -bool false

The post-Lion behavior can be re-enabled by running a defaults delete command in Terminal.

defaults delete -g NSShowAppCentricOpenPanelInsteadOfUntitledFile

Valid DVD Drive could not be found -70012

Long story made short, I use my SuperDrive in an external USB enclosure.

When opening DVD Player.app, it will present an error stating: Valid DVD Drive could not be found [70012]

A little web search turns up a thread with a great solution on tonymacx86.com.

Step one is making a backup copy of DVDPlayback.framework with this command in Terminal.

sudo cp /System/Library/Frameworks/DVDPlayback.framework/Versions/A/DVDPlayback /System/Library/Frameworks/DVDPlayback.framework/Versions/A/DVDPlayback.bak

Step two is to patch the DVDPlayback.framework file with this command in Terminal.

sudo perl -pi -e 's|\x49\x6E\x74\x65\x72\x6E\x61\x6C|\x45\x78\x74\x65\x72\x6E\x61\x6C|g' /System/Library/Frameworks/DVDPlayback.framework/Versions/A/DVDPlayback

The thread on tonymacx86.com didn’t explain what the above command does exactly, so being the curious type, I wanted to find out what operations the command performs. The simple explanation is that the command uses Perl to add a line of text to the DVDPlayback.framework file.

The more detailed explanation of the flags used with the perl command are below, found on StackOverflow.

  • -p: Places a printing loop around your command so that it acts on each
    line of standard input. Used mostly so Perl can beat the
    pants off awk in terms of power AND simplicity.
  • -i: Modifies your input file in-place (making a backup of the
    original). Handy to modify files without the {copy,
    delete-original, rename} process.
  • -e: Allows you to provide the program as an argument rather
    than in a file. You don’t want to have to create a script
    file for every little Perl one-liner.

If for some reason the DVDPlayback.framework file needs to be restored from the backup that was created in step one, just reverse the command. The restoration command is below for easy copypasta into Terminal.

sudo cp /System/Library/Frameworks/DVDPlayback.framework/Versions/A/DVDPlayback.bak /System/Library/Frameworks/DVDPlayback.framework/Versions/A/DVDPlayback

This issue occurs and is resolved for myself on macOS High Sierra.

The Erosion of the Web

While going through my bookmarks, it amazed me how many of them are dead. Once thriving communities are now gone, niche Mac apps are gone as well. Everyone knows that once something is on the internet, it is there forever, but pieces of the web are eroding.

Did I really launch that App?

If I’m on my Mac I know, because the icon starts bouncing in the Dock.

If I’m on my computer at work running Windows XP I can never be sure until a splash screen pops up or the app itself shows its window. 

Sometimes I rename files

On my Mac its awesome.  I just click the file, press Enter, and type away, and press Enter when I’m done. 

Sometimes I need to change text from either the front or the back of a file name. 

Again, simple on my Mac. 

If I want to change text on the front of the name, I just click the file, press Enter, and press the left arrow key to put my cursor at the front. 

If I want to change text on the back, I repeat, but press the right arrow key and my cursor is inserted at the end of the file name, before the extension. 

Simple.

On Windows, a different story exists. 

If I want to change text at the front, I can’t just hit the left arrow key once, I have to either click where I want my cursor to go, or hold the key down. 

Not simple.

It’s time to empty the trash

I always like to see what I am going to delete from my computer before I empty the Trash. I think that’s a reasonable request.

On my Mac I simply click the Trash in the Dock and up pops a Finder window of the files I’m about to delete. If I want to save anything, I can; if everything is ready to be tossed I simply click Empty Trash. The Trash empties and the window is closed. Awesome.

Windows, at least XP, doesn’t do that. If I click Empty Recycle Bin, it empties, but now an empty window is left for me to close.

What’s the point of if? I really don’t know. But I do know it makes me love my Mac just that much more.