| OS X - Development and Darwin Discussion and questions about development for Mac OS X. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: May 20, 2009
Posts: 7
![]() |
Hello !
I installed wine from MacPorts (the only one to work) and I'm a bit tired to open a Terminal to open Wine, is there a way to define a new file association to automatically open *.exe file with /opt/local/bin/wine (it's not possible with the built-in application selector on MacOSX) ? Cheers, Vianney |
| QUOTE Thanks | |
![]() Member Since: Sep 30, 2007
Location: Wilmington, NC
Posts: 5,801
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: iMac i3 (mid-2010) + OS 10.8; TV 2; iPhone 4S; iPad 1
|
You could probably create an Automator workflow to automate this somehow. I'm not near my Mac at the moment so I can't give any more specific ideas on how to configure that workflow for now.
Standing request for all troubleshooting: Please provide your Mac model/year and OS version. Also advise us if you have used or installed any antivirus, security, or "cleaning" software on your Mac. If you have installed MacKeeper in particular, you are hereby advised to uninstall it. --------- If all else fails to fix your problem, read this tip. |
| QUOTE Thanks | |
![]() Member Since: Mar 24, 2008
Posts: 6
![]() |
I'd like to bump this to see if anyone has any ideas or sample scripts. I don't really know what I'm doing with AppleScript to be honest, though it seems like it should be simple enough I don't really want to have to learn AS just to get it done.
Being able to double-click .exe files and then create a dummy drive for WINE are my two main wishes for making integration almost seamless, and IMO what they need for any binary distributions that come along in the future, as navigating to ~/.wine/ to get at your "C:" drive is a bit of a pain, and having to fire into the terminal to open an application is a bit too. The drive one is solved easily enough by throwing it in the sidebar and giving it a nice OS X drive icon though, but me being picky I'd prefer to see it under the devices heading ![]() Though on the plus side everything I want to run seems to run much better in WINE than it ever has in VMWare Fusion or Parallels, so it's been worth the effort so far! "Early 2008" MacPro: 2 x 3.2ghz Quad-Core Xeons (12mb cache) 10gb DDR2 800mhz RAM (ECC) 4 x 750gb SATA 2 drives (32mb cache) - RAID 0 NVidia GeForce 8800GT (512mb) |
| QUOTE Thanks | |
![]() Member Since: Mar 24, 2008
Posts: 6
![]() |
Code:
source ~/.profile if test $# = 0 then winefile C: exit fi for f in "$@" do d=`dirname "$f"` f=`basename "$f"` cd "$d" wine "$f" & done If you open the app without a .exe argument then you get the default file-browser. You can also go a step further and associate files in the info.plist within the .app, and provide icons and so-on as well, but I won't describe that here. "Early 2008" MacPro: 2 x 3.2ghz Quad-Core Xeons (12mb cache) 10gb DDR2 800mhz RAM (ECC) 4 x 750gb SATA 2 drives (32mb cache) - RAID 0 NVidia GeForce 8800GT (512mb) |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Global change of file icons based on Application | forbin | OS X - Operating System | 0 | 02-02-2005 05:59 PM |
| file type association | gdestiny | Switcher Hangout | 3 | 01-28-2005 10:34 AM |
| Change application to open file types? | sunmike | Running Windows (or anything else) on your Mac | 3 | 01-04-2005 11:51 AM |
| Finding a file (application) | WhitE_RabbiT | OS X - Development and Darwin | 1 | 08-05-2004 01:03 PM |
| File association errors | pixelmaven | Apple Notebooks | 4 | 04-09-2004 07:50 PM |
All times are GMT -4. The time now is 08:07 PM.
Powered by vBulletin