TextEdit & Preview Do Not Quit, and Run in Background – El Cap
Over several months I've experienced some odd symptoms such as lock-ups at Shut Down or an inability to Empty the Trash, receiving an error message stating the, "file (always a TextEdit or Preview file) was currently in use." Looking at the dock, I could see there were no apps active so this was puzzling. My reasonable assumption was that if there was no little black dot under an App in the Dock, then it was not open and active.
Recently, I had to Force-Quit an unrelated app and when I engaged the Force-Quit Window (⌘ + ⌥ + esc), I noticed that both TextEdit and Preview were listed in the Force-Quit menu/window, as if they were both open and active, when according to their icons in the Dock, they were not. If in fact, TextEdit and Preview had been running in the background even after they were "Quit", that would explain why I was not able to empty their files from the Trash.
That said, I often use the Automator App, "Quit All Applications" to quit all open apps which usually include TextEdit and Preview, so perhaps this Automator App does not completely Quit these particular Apps and leaves them running in the background. Seems like a bug to me.
My workaround is to simply Launch and then immediately Quit TextEdit and/or Preview manually. Doing so makes them disappear from the Force-Quit menu/window, but it's an annoying, seemingly unnecessary workaround. Now before every Shut Down, I either click (⌘ + Tab) or engage the Force-Quit Menu/Window to make sure TextEdit and Preview are no longer open and active. Since doing this I have not had any Shut Down lock-ups. I also now know to manually launch and immediately quit TextEdit and/or Preview if unable to empty their files from the Trash.
It would appear this problem goes back to earlier iterations of OS X as noted here. I would hope Apple would take the initiative to correct this bug. Does anyone else experience and/or have a permanent fix for this issue? Please bear in mind that I did a clean install of El Capitan on this MBPro and other than this glitch, I enjoy a very healthy and robust user account with this latest version of El Capitan 10.11.6.
MacBook Pro, OS X El Capitan (10.11.6), null