X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: zzapper Subject: Opening a file with a Windows App which is not in Windows File Association Date: Thu, 21 Dec 2006 12:15:44 +0000 (UTC) Lines: 24 Message-ID: User-Agent: Xnews/2006.08.24 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/