Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
add comment

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.

share|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
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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