Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Create simple launchers for standalone WIndows apps Apps
I often use Windows software on OS X, and I do like PortableApps as they do not need installation. For running Windows software, I use Wine (the open source relative of Crossover), and I always create an icon to click on to open Windows software.

Creating these icons is quite simple: you just need one AppleScript for each Windows application. Here's what the script looks like on my Mac:
do shell script "/Applications/Wine.app/Contents/MacOS/startwine /Users/myuser/Programs/ASP32/Asp32.exe"
Modify the above to point to the proper location of both Wine.app and the Windows program. Save this script as an Application, and you're done. These icons can be placed in the Dock or in any other folder (Applications, for example).

If you'd like more details on this process (including screenshots and info on custom icons), I've written it up on my blog.
    •    
  • Currently 2.50 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (8 votes cast)
 
[12,105 views]  

Create simple launchers for standalone WIndows apps | 6 comments | Create New Account
Click here to return to the 'Create simple launchers for standalone WIndows apps' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create simple launchers for standalone WIndows apps
Authored by: asmeurer on Apr 02, '10 10:39:45AM
If you have problems using Wine straight from the source, you might try WineBottler (previously Darwine), which is specially built for Mac OS X.

[ Reply to This | # ]
Create simple launchers for standalone WIndows apps
Authored by: mojo2012 on Apr 07, '10 06:35:16AM

The advantage is, that WineBottler creates an .app-bundle that even shows up in the Dock.



[ Reply to This | # ]
Create simple launchers for standalone WIndows apps
Authored by: simondorfman on Apr 03, '10 04:13:48PM

Thanks for this hint. I ended up installing Wine with MacPorts with help from this article: http://davidbaumgold.com/tutorials/wine-mac/

A couple tips about the applescript:

  1. I added pipe to dev null at the end so the applescript launcher wouldn't stay open while the Windows app was running.
  2. If you have a space in the path to the .exe and you need to escape the space with a backslash, you need to escape the backslashes with backslashes too. So here's what my applescript looks like.
    do shell script "/opt/local/bin/wine /Users/simon/.wine/drive_c/Program\\ Files/Zillions\\ Development/Zillions\\ Demo/Zillions.exe >& /dev/null &"


      [ Reply to This | # ]
Create simple launchers for standalone WIndows apps
Authored by: rjbailey on Apr 04, '10 10:33:46PM

This is a great tip and I was so inspired I installed wine via MacPorts and began running Windows programs within a few minutes.

This may be OT, but.... how the he11 do I print from wine? The FAQs I've seen say precious little on the subject that means anything to me.



[ Reply to This | # ]
Applescript Icon
Authored by: pepijndevos on Apr 11, '10 05:03:45AM

I also use this approach for Unix apps from MacPorts.

If you have XCode installed, you can use /Developer/Applications/Utilities/Icon Composer.app to create an icon for you Windows app.
You'll have to replace your.app/Contents/Resources/applet.icns with the new icon.
Hope that helps.



[ Reply to This | # ]
Create simple launchers for standalone WIndows apps
Authored by: simondorfman on Mar 23, '11 09:15:38PM
A small improvement to the applescript code I posted above. This code figures out the current username, so you don't have edit the script to include your own username:

set currentUsersName to (system attribute "USER" as string)
do shell script "/opt/local/bin/wine /Users/" & currentUsersName & "/.wine/drive_c/Program\\ Files/Zillions\\ Development/Zillions\\ Demo/Zillions.exe >& /dev/null &"


[ Reply to This | # ]