![]() Hiding files from officials sounds pretty suspicious, I know.īut never fear-I’m not a terrorist (I promise, NSA), I don’t smuggle contraband, and aside from sneaking into Iran, I’m generally solid citizen when it comes to following rules. Here’s a guide on how to hide computer files for border crossings, to save you time and unnecessary scrutiny. If this happens, logging out and back in again fixes it, but it's a waste of time obviously, so I use 'sleep'.Ī sleep value of 0.5s works for me, but to be on the safe side, you can slightly increase it (adding a more noticeable delay to the process then).In the age of paranoia, border checks are becoming increasingly intense for innocent citizens. Together with my own 'open' command, this can lead to the nasty effect of two (unkillable, even) Finder processes running, and Finder not working anymore at all. If I don't force this delay, there's a chance OSX relaunched Finder already and opened a folder (not necessarily the last active one, in my experience). I have to resort to a bit of an ugly hack, using 'sleep' after killing Finder, before manually opening the original folder. I limited the scope of my shortcut to Finder alone. To use the script: Open a new workflow in Automator, drag in "Run AppleScript", copy&paste the code above, and save inside your services folder (usually, ~/Library/Services/, afaik).Īttaching a shortcut to execute a script should be covered somewhere else on this site. Close other windows if Finder managed to relaunch already Ugly, but (probably) unavoidable.ĭo shell script "killall Finder sleep 0.5s" STATUS=`osascript -e 'tell app "Finder" to display alert "Finder is showing hidden files." buttons thenĭo shell script "defaults write AppleShowAllFiles " & newHiddenVisiblesState STATUS=`defaults read AppleShowAllFiles 2>/dev/null` ![]() The text for the script is repeated below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |