So to learn a bit about zsh shell scripting, I wrote a zsh shell script called edit.zsh. With html and text documents, depending on what I would like to do, I might want to open the file in SubEthaEdit, or in a WYSIWYG editor, or browse it in Safari.Although it is not hard to type open -a Preview foo.jpgit is more annoying to remember to type open -a "Adobe Photoshop 7.0" foo.jpgand when I accidently invoke Photoshop, I have to sit there for 30 seconds watching it lumbering to start up, when it would be nice to have a chance to abort and open in Preview. I often have files of the same type (eg: text, html, jpg) created by different programs, so if I double-click or type open foo.jpgthe file might open in Preview, or Photoshop, or AppleWorks, or whatever.
0 Comments
Leave a Reply. |