I am running PSPad (a Windows programming editor) on Mac OS X (Snow Leopard) using Wine 1.1.35.

I want to associate various file extensions (.php, .js, .html) with PSPad.exe.

Finder does not allow this association. I can only associate file types with $.app items in Applications.

How do I get Mac OS X to pass a file to Wine/PSPad when I double click it in Finder?

link|improve this question
feedback

2 Answers

You need to create an AppleScript (or other Mac executable) that wraps PSPad.exe and Wine, which you can then associate in the Finder with those file types. See http://wiki.winehq.org/MacOSX/FAQs#head-8ce99bcac8d68bfcc6f7c58895110da202927611 for some instructions on doing that.

link|improve this answer
Thanks Jon -- tried this and while it does create an app which can be associated with file types, it fails to open a file (filename.php) in the editor when double clicking on filename.php. I've given up trying to get this to work and switched to jEdit. – Damion Hankejh Apr 6 '10 at 17:32
feedback

I am not sure if it would work, but you could create a symbolic link called whatever.app and have that link to the PSPad.exe file.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.