Flexing my geek muscle
Oct. 14th, 2014 10:54 amtl;dr - I use my minuscule shell skills and some ingenuity to subvert Mac stupidity in service of my kid's homework.
Set-up: Thing 2 needs to print out some screenshots from Minecraft for his homework. Of course he's left this to the last minute so after returning from King Richard's Faire we're up against the evening deadline to get this done.
Start: To all appearances the screenshots he claims to have created from Minecraft are not there. Really?
First, research all the places that the Web guidelines say that screenshots get saved. Fight with Finder to see all of them. They all appear empty. Dafuq?
Run Minecraft, verify that the kids haven't configured it to save shots in a new place.
Double-check that these places are showing empty in Finder. Curse Apple.
Bring up a command line and "find / -print" those places. cd to each of them and verify that they are in fact empty.
Start to doubt that any screenshots were saved. Re-run Minecraft and create a new screenshot. Fortunately, the game has a standard naming format for its shots. Back to Finder, ask it to locate the screenshot we just saved. "BWAH HAHA HA," says Finder. "U no can haz screenshot!"
Screw you, says I and go back to the command shell, whereupon another "find / -print" command locates not just the new screenshot but also the shots that Thing 2 saved earlier. They're in a different place than the Web pages claimed. Whatever. Now I have an ls of the files in the shell window, I can just navigate Finder to the parent directory and ...
What do you mean Finder won't display the directory? What sort of BS is this? Curse Apple a lot more.
Fiddle with Finder a lot. Pygment fiddles with it some more. No joy. It simply will not show this directory. Uncle Apple knows best! May whatever idiot Jobs hired to code this thing rot from the fingertips upward.
Start to get creative. Grab a USB stick - I can just cp the files to the stick and put the stick into another system. Discover that although Finder can see the stick I can't figure out where in the file system it exists so I can't cp the files over to it.
Then it occurs to me that we have Dropbox installed on this machine and Pygment's machine can see things Dropbox is sharing off the laptop, so if I can get the files into Dropbox she can get them. Better, it turns out Dropbox has a folder that Finder can see. Also, that folder is in a pretty obvious location so I can cp all the screenshots over there and PRESTO they appear in Finder and can be printed.
Do geek dance of victory.
Set-up: Thing 2 needs to print out some screenshots from Minecraft for his homework. Of course he's left this to the last minute so after returning from King Richard's Faire we're up against the evening deadline to get this done.
Start: To all appearances the screenshots he claims to have created from Minecraft are not there. Really?
First, research all the places that the Web guidelines say that screenshots get saved. Fight with Finder to see all of them. They all appear empty. Dafuq?
Run Minecraft, verify that the kids haven't configured it to save shots in a new place.
Double-check that these places are showing empty in Finder. Curse Apple.
Bring up a command line and "find / -print" those places. cd to each of them and verify that they are in fact empty.
Start to doubt that any screenshots were saved. Re-run Minecraft and create a new screenshot. Fortunately, the game has a standard naming format for its shots. Back to Finder, ask it to locate the screenshot we just saved. "BWAH HAHA HA," says Finder. "U no can haz screenshot!"
Screw you, says I and go back to the command shell, whereupon another "find / -print" command locates not just the new screenshot but also the shots that Thing 2 saved earlier. They're in a different place than the Web pages claimed. Whatever. Now I have an ls of the files in the shell window, I can just navigate Finder to the parent directory and ...
What do you mean Finder won't display the directory? What sort of BS is this? Curse Apple a lot more.
Fiddle with Finder a lot. Pygment fiddles with it some more. No joy. It simply will not show this directory. Uncle Apple knows best! May whatever idiot Jobs hired to code this thing rot from the fingertips upward.
Start to get creative. Grab a USB stick - I can just cp the files to the stick and put the stick into another system. Discover that although Finder can see the stick I can't figure out where in the file system it exists so I can't cp the files over to it.
Then it occurs to me that we have Dropbox installed on this machine and Pygment's machine can see things Dropbox is sharing off the laptop, so if I can get the files into Dropbox she can get them. Better, it turns out Dropbox has a folder that Finder can see. Also, that folder is in a pretty obvious location so I can cp all the screenshots over there and PRESTO they appear in Finder and can be printed.
Do geek dance of victory.
no subject
Date: 2014-10-14 03:07 pm (UTC)open .what happens?
no subject
Date: 2014-10-14 03:51 pm (UTC)no subject
Date: 2014-10-14 03:46 pm (UTC)no subject
Date: 2014-10-14 03:51 pm (UTC)Given the smattering you've reported about how you operate it feels like some sort of *nix machine would be most suited to your style - what sort of thing are you thinking of getting?
no subject
Date: 2014-10-14 03:59 pm (UTC)One of the many reasons I hate my iPhone is that it goes to such lengths to hide its directory structure from me (though I've largely overcome this via jailbreaking and a whole lot of amateur hacking). It sounds from your post that I was right in my guess that all Apple products would be equally infuriating.
no subject
Date: 2014-10-14 04:12 pm (UTC)That you can get anything done in Vista amazes me. I hung onto XP as long as possible, then went directly to 7. If you get a new PC you can generally get it with 7 installed, but will have to ask for that.
no subject
Date: 2014-10-14 05:37 pm (UTC)no subject
Date: 2014-10-14 03:58 pm (UTC)No, this is Minecraft stupidity.
When you take Mac OS X screenshots, they go to a clearly documented standard location -- your Desktop -- which is always visible and accessible to you, and they're named according to a very simple convention, "Screen shot 2012-08-07 at 09.30.42 AM.png".
Minecraft chose to save to a strange location. I can't say why you had such difficulty working with that location and its contents, but I'm guessing, even betting, on them saving with strange permissions.
Given that you can see that location and its contents through Terminal.app, Ron's suggestion of "
open ." when in that location (or just "open /path/to/dir" regardless of your Terminal.apppwd) should make those shots visible through the Finder.Also, you can "
open -a Preview /path/to/file" to bring them up in Preview.app. Change "Preview" as appropriate to use a different app, for file formats Preview can't handle or if you prefer a different graphic handler. Change to "open -e /path/to/textfile" to open a text file in TextEdit.app.I submit that your curse on Jobs' code minion should be retracted.
no subject
Date: 2014-10-14 04:14 pm (UTC)I wasn't aware of the open(1) command. Interesting shortcut, but it just reinforces my belief that whoever coded Finder did so wrongly, such that they had to provide an extra command-line program (or maybe it's a shell command) to get around it. The curse stands.
no subject
Date: 2014-10-14 04:31 pm (UTC)~/Library/and its contents aren't ordinary user-space. They're accessible by the clueful, but fiddling in there can cause lots of trouble, so they're invisible by default -- akin to files named with leading "." in *nix (including OS X's Finder and your *nix shells -- go digging for~/.ssh-- I'll wait).Here, have 18 ways to deal with such. My personal choice (dating back to very early in OS X's life) is their last -- "Show all hidden files" -- which I believe I enabled using TinkerTool.app, but there are other GUI tools that provide similar, as well as the simple command they provide. Whether you want to leave that open for the Things ... that's another question.
no subject
Date: 2014-10-15 08:52 pm (UTC)Wex, the USB stick is probably mounted under /Volumes, which I know is no longer useful, but, well, I can't resist.
no subject
Date: 2014-10-16 10:39 pm (UTC)no subject
Date: 2014-10-14 04:22 pm (UTC)no subject
Date: 2014-10-14 05:39 pm (UTC)I have had this night many times...
no subject
Date: 2014-10-14 06:19 pm (UTC)I used Windows XP for many years and recently switched to Windows 8. I'm finding 8 to be ridiculous to work with, since the default permission for nearly everything is "you can't do anything with the files." There's a way around that, of course, and I can copy and paste and move and delete now that I've found it, but for awhile, Norman overheard me saying things like, "Me person, you computer. YOU obey ME!"
no subject
Date: 2014-10-14 08:56 pm (UTC)But, yeah, the open command is the best bet in this situation.
Although... Did "Go to Folder..." under the Go menu in Finder bring you no joy?
Also, there's some command you can run in Terminal to turn on the option to show EVERYTHING in Finder.
Tried those
Date: 2014-10-14 09:55 pm (UTC)no subject
Date: 2014-10-16 10:35 pm (UTC)it's really awesome -- until it isn't.