How do you run .exe files with wine by clicking on them?

Hi, I need help with using wine on mac osx. I used to use wine on Ubuntu and Linux Mint and it was relatively simple. But on mac osx, I used macports to dowload/install wine, and i used winecfg to create a prefix. I can not figure out for the life of me how to launch an executable by clicking on it. It opens in TextEdit instead of launching in wine. Can someone explain to me how to make a .exe file launch by clicking on it? Do i have to register the filetype with wine? Wine is not in a .app format. I can run any .exe in terminal but it is less than convenient. Thanks in advance.

MacBook, Mac OS X (10.6.2)

Posted on Apr 14, 2010 5:21 PM

Reply
4 replies
Sort By: 

Apr 14, 2010 7:17 PM in response to tylerbialo

I do this with an applescript which includes a shell script:


do shell script "/Applications/Wine.app/Contents/MacOS/startwine /Volumes/atlas_3/Atlas3.exe &> /dev/null &"


in this case the .exe file (Atlas3.exe) is on a virtual disc called atlas_3.
The shell script tells wine to start and then where the .exe file is. The end of the shell script line, after the .exe, directs the output out of the shell and back to the applescript so it can close after it runs.

You can save an applescript like this as an application and click on it and your .exe will run in wine.
Hope this helps.
Reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do you run .exe files with wine by clicking on them?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.