QuickLook scans file contents before you open those files. Usually this just lets you view a file quickly. But you can also use this same technology from the command line to bring about a change to the Finder without actually opening a file. To access QuickLook from the command line, use qlmanage.
qlmanage -p ~/Desktop/MyTowel42.pdf
While open, click the space bar to go back to your Terminal session. The most notable use case here is that when you use qlmanage you don’t run the risk of changing the date/time stamp of the files.
krypted November 10th, 2014
You’re searching for some content on your desktop and opening pages file after pages file and pdf after pdf in QuickLook. Finally you find that one juicy morsel. It’s a short script you just need to copy into your clipboard. But you can’t. The gods of technology are aligned against you, to make you hit command-O and then after waiting for the entire 3 seconds it takes Preview to open, you have to search within the document for that information. Holy crap, you just lost at least 5 to 8 seconds of your day. I guess now you have to cancel vacation or let your spouse know you’ll be home late late.
But you don’t have to miss the train. I have a step in my imaging workflow that you’re going to love. One of those little gems I put in my default user and had almost started thinking was the default until I realized it was part of my imaging workflow during ML upgrades. Gain back at least 10 seconds a day with this handy little option: enable text selection in QuickLook. Basically, if you click on text in QuickLook nothing happens, double-click the file to open. If you write the QLEnableTextSelection key into com.apple.finder (.plist) then log out, reboot or kill the Finder, you can click on text and it actually highlights (cue angelic chorus):
defaults write com.apple.finder QLEnableTextSelection -bool TRUE
And to kill the finder:
defaults write com.apple.finder QLEnableTextSelection -bool FALSE
Now take that extra hour a year I gave ya’ and sumbit an article to this site using the Submit button in the toolbar!
krypted June 23rd, 2012
Posted In: Mac OS X
It’s fairly easy to take an application installer in Mac OS X and repackage it. In the process it’s also straight-forward to include other, potentially unintended information in the package. This is why a number of vendors will sign their packages and then post the signatures for systems administrators to be able to verify the signatures. In Mac OS X you can also view the contents of a package by control-clicking on it and choosing Show Contents in order to be able to manually review the contents. But could it be even easier? Apparently so: Mothers Ruin Software has written a QuickLook plug-in for Packages, called aptly enough, Suspicious Package. Suspicious Package will show you the contents of a package in a screen that also tells you whether the package will require a reboot, require elevated privileges and even if it contains any scripts – and all at the press of a spacebar when clicked on an item.
krypted July 18th, 2009
If you click on a file, folder or image in Mac OS X and then press the space bar to see a QuickLook screen. Here, you can click on the diagonal arrows pointing outwards to move into full screen – great for showing documents or images during presentations. While in full screen mode, click on the diagonal arrows again to go back to a windowed appearance. If it is an image then you can will also have an icon to save the image into iPhoto and can option-click on the image to zoom in.
krypted May 21st, 2009
Posted In: Mac OS X