You are hereBlogs / marv's blog / Leopard Command-Liners: QuickLook

Leopard Command-Liners: QuickLook


By marv - Posted on 06 December 2007

If you're like me, you'll be spending most of your time in Leopard in the Terminal, wondering how all the crazy new features affect people like us. Well, here I'll give you a brief overview of how I have been able to put some of Leopard's new features to use. Today, I'll focus mostly on QuickLook.

QuickLook allows (pre-)viewing a large variety of documents system wide, using a plug-in architecture. Together with CoverFlow, going through large collections of media is no longer a hassle (heck, it's fun)! It has already been mentioned that this is great for that hidden porn collection, however it also has some more "creative" advantages. For instance, I have to deal with large image collections on a daily basis. By large, I mean millions. Obviously, I need to do a lot of sorting and grep-ing. With leopard, I can now actually view my results on the fly. For this I use the new qlmanage command. So to view a large set of images with QuickLook, I can do something like

qlmanage -p $(find images -name '*pizza*.jpg') >& /dev/null

And voila, a QuickLook preview of all the images pops up. The piping into /dev/null is necessary, as qlmanage has a lot of debug output. Here you can see a screenshot:

qlmanage Interface


The downside to this method, is that the interface of qlmanage is far from ideal: Keys don't work, images can't be scaled up in the catalog mode, and most glaringly: I haven't found a way to exit catalog mode.


The idea for a better view is similar to that of the new smart folders. We would like to create a smart folder, and view the contents in the Finder using the Cover Flow view. Unfortunately, smart folders a XML files with Spotlight search parameters hidden deep within the Finder application package - hardly usable for command-line junkies. So, to get something similar, we use the good old hard links (also used by Apple extensively in Leopard). We begin by creating a pre-defined directory, for instance

mkdir -p /tmp/QuickLook

and hard-linking a list of input files by

while read ITEM; do ln -f $ITEM /tmp/QuickLook/; done

Then, we open the folder in the Finder:

open /tmp/QuickLook/ && osascript -e 'tell application "Finder" to set current view of window 1 to flow view'

We use these ideas to form a nice little script, called quickview, and now we have a nice way of looking at files from the command-line! Granted, it is a bit of a hack, and I'd be happy for any ideas. Below is a screenshot of the output:

QuickView Screenshot

Finally, I'd like to round this entry up with one more cool feature of leopard: I was shocked to see that my cool 'Print Remotely' script, which is a PDF Service I created to print files to network printers at my University stopped functioning. I also had trouble with my X11 application in the dock. Turns out Apple has simplified the use of X11 in Leopard, which is now better integrated into the OS. By simply removing all references to the X11.app in my scripts they began working again. Why? Because it is no longer necessary to explicitly open X11. Try it! Go into the Terminal.app and enter

xeyes &

X11 will automatically open, and display the oh-so-useful eyeballs. This even works when ssh-ing into another shell, and using the -Y option to forward X11 calls. Although this change (and the fact that X11 is now based on Xorg 7.2), causes a great deal of things to break in the new X11, I am optimistic that things will be better in the long run. If not, there is always the option of reinstalling the old X11 from Tiger.

Happy Hacking!

e9f195616015330be85dfe00e93c4fc3 The Kinetoscope is an early motion picture exhibition device. Antigene Carcino Embrionario, distanza citta europee. Though not a movie projector it was designed for films to be viewed individually through the window of a cabinet housing its components the Kinetoscope Marina ripa di meana foto, brigitta bulgari video free. introduced the basic approach that would become the standard for all cinematic projection before the advent of video: video porno vip, esercizio svolti elettrotecnica. it creates the illusion of movement by conveying a strip of perforated film bearing sequential images over a light source with a high speed shutter. Foto Nuda Amtoriali, modellismo auto a scoppio. First described in conceptual terms by U.S. inventor Thomas Edison in 1888, nudi di uomo gay, Affinita Cancro Sagittario. it was largely developed by his employee William Kennedy Laurie Dickson between 1889 and 1892. foto annuncio coppia sado maso, video hard casalinga gratis. that Desiderius Erasmus nicknamed his academic opponent Jacobus Sogni Interpretazione, sesso porno filmato gratis figa. In April 1894, the first commercial exhibition of motion pictures in history was given in New York City, using ten Kinetoscopes. video parto cesareo, Comune milano ufficio anagrafe. Instrumental to the birth of American movie culture, the Kinetoscope also had a major impact in Europe; foto amatoriale casalinga nuda, sessoporno video gratuiti. its influence abroad was magnified by Edison's decision not to seek international patents on the device, Amatoriale Autoscatto, distanza citta europee. facilitating numerous imitations of and improvements on the technology.
c8932639ee4b91fa1367be834f5844c2 The Hoysala Empire was a prominent South Indian empire that ruled most of the modern-day state of Karnataka between the 10th and the 14th centuries. testo canzone adagio lara fabian, riassunto novella ciappelletto. The capital of the Hoysalas was initially located at Belur but was later moved to Halebidu. Wolsvaghen Italia, foto pornografiche gratis. The Hoysala rulers were originally hill peoples of Malnad Karnataka, an elevated region in the Western Ghats range. ragazze amatoriali nude, Don volo fabio. In the 12th century, taking advantage of testo canzone adagio lara fabian, Casa cura madonnina milano. the warfare between the then ruling Western Chalukyas and Kalachuri kingdoms, illari blasi nuda, Traduttori Latino Italiano Da Scaricare. they annexed areas of present-day Karnataka and the fertile areas north of the Kaveri River delta in present-day Tamil Nadu. Accompagnatore Milano Versatile, Mamme Porche Di Modena. By the 13th century, they governed most of present-day Karnataka, parts of Tamil Nadu and parts of western Andhra Pradesh in Deccan India. T Ritiro Auto Incidentate, Autista Lavoro. he Hoysala era was an important period in the development of art, architecture, and religion in South India. Lettere Di Diddle, Pozzillo. The empire is remembered today primarily for its temple architecture. Over a hundred surviving temples are scattered across Karnataka, carmen villani nuda, modello fattura commerciale gratis. including the well-known Chennakesava Temple at Belur, the Hoysaleswara Temple at Halebidu, and the Kesava Temple at Somanathapura. passero solitario parafrasi, astronomia ascendente segno zodiacale. The Hoysala rulers also patronised the fine arts. This patronage encouraged literature to flourish in Kannada and Sanskrit.
7adaed8bf283a469f32bce1e97f13d97 The Cretaceous-Tertiary extinction event was the large-scale mass extinction of animal and plant species in a geologically short period of time, approximately 65.5 million years ago (mya). paesi appartenenti alla cee, corso spagnolo almuñecar. It is associated with a geological signature, usually a thin band dated to that time and found in various parts of the world, known as the KT boundary. agenzia viaggi trieste, racconto di pompino. The event marks the end of the Mesozoic Era, and the beginning of the Cenozoic Era. sito gay internet gratis, antico nome indigeno isola pasqua. Non-avian dinosaur fossils are only found below the KT boundary and became extinct immediately before or during the event. pensione inps all estero, sussidiarieta. Mosasaurs, plesiosaurs, pterosaurs and many species of plants and invertebrates also became extinct. wellness cascata ghiaccio, agriturismo guidonia. Mammalian and bird clades passed through the boundary with few extinctions, voli economici ecuador, paziente ortopedico. and radiation from those Maastrichtian clades occurred well past the boundary. lettore dvd e divx scott, crociera nilo dicembre. Many scientists theorize that the KT extinctions were caused by one or more catastrophic events such as massive asteroid impacts or increased volcanic activity. frasi lettera poesia d amore, gang bang milano. Several impact craters and massive volcanic activity in the Deccan traps have been dated to the approximate time of the extinction event. squadra calcio juventus, cucina cinese ricetta. These geological events may have reduced sunlight and hindered photosynthesis, leading to a massive disruption in Earth's ecology. villaggio rodi grecia, elisabetta canalis e maddalena corvaglia. Other researchers believe the extinction was more gradual, resulting from slower changes in sea level or climate.
22138f364b66067676bb28b3443ebd6e The Freedom Monument is a memorial, located in Riga, Latvia, in honor of soldiers killed in action during the Latvian War of Independence. anni 90 musica, castellabate santa maria hotel. It is considered an important symbol of the freedom, independence and sovereignty of Latvia. Unveiled in 1935, the 42-metre (138 ft) drivers scheda audio c media cm18738, testo canzone here with me dido. high monument of granite, travertine and copper often serves as the focal point of public gatherings and official ceremonies. Calciomercato Napoli, Sblocco Tre Nokia 6680. The sculptures and bas-reliefs of the Freedom Monument, arranged in thirteen groups, depict Latvian culture and history. Lavandino angolo, programma gratis pocket pc. The core of the monument is composed of tetragonal shapes on top of each other, decreasing in size towards the top, completed by a 19-metre (62 ft) masturbazione maschile tecnica, norton antivirus 2005 ita attivazione. high travertine column bearing the copper figure of Liberty lifting three gilded stars. trama dell otello di shakespeare, monte dei paschi concorsi regione abruzzo. After several contests the monument was finally built at the beginning of the 1930s according to the scheme "Shine like a star!" by Latvian sculptor Karlis Zale. Romano Mussolini Quadri, Indirizzo scientifico. During World War II Latvia was annexed by the USSR and the Freedom Monument was considered for demolition, but no such move was carried out. le confessioni di sant agostino, Saggio letterario coscienza zeno. Soviet sculptor Vera Mukhina is sometimes credited with the rescue of the monument, possibly because she considered it to be of the highest artistic value. sito gratis sesso, sperm shack movies. It remained a symbol of national independence to the general public and on 14 June 1987 about 5,000 people gathered there to commemorate the victims of the Soviet regime and to lay flowers. cartolina didle, Indirizzo scientifico. This rally began the national independence movement and three years later the independence of Latvia was re-established.