|
|
No "space bar" goodness
This does work well for making rapid Quick Look windows for data. The biggest problem, though, is that you can't use the space bar to make the Quick Look window go away like you can with "normal" Quick Look in the Finder.
Alternative keyboard exit
Using the spacebar would be nice and consistent, but at least we have ctrl-c and cmd-. to get out.
No "space bar" goodness
I've been using the following script for this. You can close the window by hitting any key, including space.
No "space bar" goodness
That seems like an incredibly complex way of waiting for a keypress. The following script is much simpler and works just as well in my testing. To be honest, I didn't actually test your version of the script. Does it provide some other benefit that I'm just not seeing?
No "space bar" goodness
Does it provide some other benefit that I'm just not seeing?In this venue, you're right, it is overly complicated. Its one benefit over using read -n 1 is that it's technically more portable across UNIXs. On OS X, sh is really bash, which provides the -n option. The real sh doesn't have this option. But since this is a Mac forum, and the script itself is Mac specific (using qlmanage), your method is preferable. And to be honest, I think it may be unlikely you'd find a modern UNIX variant where sh isn't really bash, so I think I'm going to retire this snippet in favor of yours. Thanks! |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|