| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <195b3f1f0612261722sd2ea07er89247a1cef4023e7@mail.gmail.com> |
| Date: | Wed, 27 Dec 2006 10:22:07 +0900 |
| From: | "Wynfield Henman" <wynfield AT gmail DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Opening a file with a Windows App which is not in Windows File Association |
| In-Reply-To: | <Xns98A07CBCB416Ezzappergmailcom@80.91.229.5> |
| MIME-Version: | 1.0 |
| References: | <Xns98A07CBCB416Ezzappergmailcom AT 80 DOT 91 DOT 229 DOT 5> |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
Thanks for the info.
I use zsh suffix aliases, so I don't need to worry about "MS Windows"
file associations. If you use zsh and set suffix aliases in your zsh
startup file, such as ~/.zshenv
Then all you have to do to view you file is
$ logo.jpg
#zsh will see the jpg suffix and find the application that you
associated with it in your ~/.zshenv file. This is to me more
portable, in that I don't have to rely on "MS's" hash or data
structures...
You would need a function to as you kindly showed to change to an
explicitly different application (picture studio in your example.).
Regards
On 12/21/06, zzapper <david AT tvis DOT co DOT uk> wrote:
>
> I usually open my images with the wonderful irfanview
> http://www.irfanview.net/
> so
> > cygstart logo.jpg
>
> does the job
>
> Occasionally I want to use Adobe Photoshop elements, like many Windows Apps
> it wants the FULL path to the document and obviously in DOS format.
> The following does the trick, and may be of interest to others
>
> function pse()
> {
> # name : pse
> # description : Open image with Adobe Photoshop elements
> # : (cannot use cygstart as not in Windows File Association)
> c:/Program\ Files/Adobe/Photoshop\ Elements\ 2/PhotoshopElements.exe
> $(cygpath -w $PWD/$1) &
> }
>
> --
> zzapper
> http://successtheory.com/tips/ Vim, Zsh, MySQL Tips
>
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Problem reports: http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |