Opening images in Preview from Mac OS X Command Line


If you’re in command line and you got a bunch of images in a directory and you would like to preview them without touching the mouse.


open -a Preview *

Since that is too much to type, you can add an alias to your ~/.bash_profile


alias preview="open -a Preview"

Copy and paste the above text into your ~/.bash_profile

Usage: preview * or preview *.jpg

Enjoy,
Taras

Information and Links

Join the fray by commenting, tracking what others have to say, or linking to it from your blog.


Other Posts

Write a Comment

Take a moment to comment and tell us what you think. Some basic HTML is allowed for formatting.




Reader Comments

Be the first to leave a comment!