A Pseudo Port, anyone?

Preamble

Ever needed an OS X version of your favourite Windows application, but there isn’t one? I found myself in the same situation, with respect to TextPad. I remembered that I had learnt a trick, using Wine, but I had forgotten the exact steps. Luckily, I had noted down the steps in a Stack Exchange post. However that post had subsequently been deleted. I managed to retrieve it and have saved it here for posterity.

This is not about porting apps, I must confess…

Note on deleted Stack Exchange Posts

This is from a deleted question on Stack Exchange. Or rather, this is the “saving for posterity” of an extensive answer that I posted to a question on Graphic Design, a question which the original poster, rather inconsiderately, subsequently deleted..! Using a neat edit trick proposed by Mark Booth, see his answer to the question View *my* deleted question and answer with less than 10K on Meta SE, I managed to get hold of my answer, as well as the original question.

To get at your answer to a question that the author deleted, you need the answerPostID from the URL, not the questionPostID, where the URL to the deleted answer is of the form:

http://<site>/questions/questionPostID/<titleText>/<answerPostID>#<answerPostID‌&gt;

and then plug it into Mark’s URL above,

i.e.http://<site>/posts/<answerPostID>/edit

Note that this will not work for the question (if you didn’t write the question – if you did, then I still not sure if it works), and that you need to have edit rights (i.e. you were the authour).

The original question

The question was titled PSD Mockups that aren’t About Apple? and was about an OP not being able to find a photoshop related image, that was not on Apple hardware… If I recall correctly.

My answer

I know that this is not exactly what you are asking for, or were expecting, but should you not be able to find any good quality mockups of hardware, other than Apple, this is surely the next best solution.

The problem lies in the fact that this application only runs on Windows…

Nearly any Windows app can be made to run on Mac hardware, running OS X, even graphically intensive games, albeit with a loss in performance (to some degree or other), just by wrapping the application in a Wineskin… Now I had heard about this over a couple of years, but, after my experience of using Wine on Linux in the early 2000’s, I was always put off my what I imagined would be a right pain to configure, terrible performance and just a general nightmare. How wrong I turned out to be. About two months ago I ended up having to fix a game app to run OS X, found some instructions, followed them and since then I have been wineskin-ing loads of Windows only apps (Multimeter logging software, Comms software, etc).

Wineskin MacOS icon

Download Wineskin Winery, and follow the steps below:

  1. Update the wrapper
  2. Install a wineskin engine
  3. Create a wrapper
  4. Configure your wrapper
  5. Install and run your software
  6. How to Get Back to the Wrapper Configuration Page

These steps were taken from How to Run Your Favorite Windows Programs on OS X with Wineskin. There is an alternative method, which I employ, which comes from the youtube video that I mention below, How To Fix Grand Theft Auto SanAndreas Not Starting *Mac:

  1. Open the Wineskin winery app and update the wrapper – click on the Update button.
  2. Install a wineskin engine – click the + beneath the list area of the engines, choose the latest one and click Download and Install
  3. Create a new wrapper – name it in the subsequent dialog, “Please choose a name for this wrapper”, click OK.
  4. The subsequent dialogs (Do you want to install Mono, .NET, etc.) you can click Cancel, if you know that you don’t need them, otherwise there is no hard in clicking Install
  5. On the OSX dialog, “Do you want the app to accept incoming Network connections” – clickDeny if your app needs no network access, else click Allow.
    1. When it has finally finished creating the Wrapper (it can take a while), click on View wrapper in Finder
  6. Right click and select Show Package Contents
  7. Open the alias drive_c. This should reveal three directories (Users, Program Files andwindows)
  8. Now on the PC/Windows machine, where your Windows application resides, open up the C:\Program Files\ directory and copy the directory that contains your installed app to the mac (via network, USB drive or what have you). So if the path isC:\Program Files\RandomCorp\NiceApp\NiceApp.exe

then you want to copy the RandomCorp directory.

  1. Once you have copied the RandomCorp directory to your Mac, drag it to the Program Files folder in the drive_c folder in the Wineskin wrapper. You can now close the window to the Wineskin’s package contents.
  2. Now run the wrapper app, for the first time, by double clicking the icon. As the wineskin app is not yet configured, a dialog opens up. In the resulting Wineskin dialog, clickAdvanced, click Browse, navigate to the RandomCorp\NiceApp directory, locate the NiceApp.exe and click Choose.
  3. Click Test Run to test it.
  4. The application should run.
  5. You can now close the wineskin’s application window.
  6. You will be presented by a Test Run logs dialog – if you had no problems click Cancel else click View to see what went wrong.
  7. You can now close the Advanced dialog.
  8. You can now run the app by double clicking the Wrapper icon.

There are a number of video tutorials out there, on youtube, of varying quality. I, myself, followed one called “How To Fix Grand Theft Auto SanAndreas Not Starting *Mac” (The mis-spelling of San Andreas is a direct quote). Admittedly it does not have the best audio, nor is the verbal explanation particularly clear, but the steps in the video itself are straight forward enough – it is the video that I followed and learnt with, when I had to resort to using Wineskin for the first time.

So, in conclusion, you would end up showcasing Mac hardware mockups, on a Mac using a Windows app. Unless you are actually trying to sell the Windows app, this solution should work1.

Hope this helps.


1Alternatively, consider porting the Windows app to OS X.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s