zfm
zfm

Reputation: 2006

automatically running wine while double clicking .exe file on mac

I have already had wine on my mac, now I would like to know whether it's possible to automatically running wine when I double-click an .exe file (on Finder), because I believe wine doesn't go to my Application folder when I installed it...

If possible, how exactly?

PS: I don't know if this is needed, I use MacOS Lion.

Upvotes: 0

Views: 2582

Answers (2)

3TimesThinkThenSay
3TimesThinkThenSay

Reputation: 11

We can use Apple Script to run the exe file.

  1. Open Script Editor.
  2. Add code below:

    tell application "Terminal"
    do script "'/Applications/Wine Stable.app/Contents/Resources/wine/bin/wine64'
    ~/.wine/drive_c/Program\\Files/$PATH_TO_PROGRAM.exe"
    end tell
    
  3. Save as application (not as a script) on the Desktop

  4. Double click to run the application.

Upvotes: 1

Michael Dautermann
Michael Dautermann

Reputation: 89519

This is a question better asked on SuperUser.com, but anyways... if you click "Get Info" on your .exe app within the Finder, one of the items in the Info window that shows up will be "Open with:".

You can select WINE as the app to open those .exe files.

Upvotes: 0

Related Questions