Reputation: 2006
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
Reputation: 11
We can use Apple Script to run the exe
file.
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
Save as application (not as a script) on the Desktop
Upvotes: 1
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