in reply to Re^3: How to run MacOS Classic app in OSX? system() can't run it..
in thread How to run MacOS Classic app in OSX? system() can't run it..

In my case, I guess './myapp' has lost resource fork information (I've copied it using ftp program). Can it be the reason why it doesn't run? I'd like to put the 'myapp' to CD with ISO9660 filesystem, so resource forks won't be available there. Are there any special commands for running OS9 binaries without resource forks available?

Thanks in advance for your answers!

  • Comment on Re^4: How to run MacOS Classic app in OSX? system() can't run it..

Replies are listed 'Best First'.
Re^5: How to run MacOS Classic app in OSX? system() can't run it..
by john_oshea (Priest) on Feb 03, 2006 at 17:03 UTC

    The actual code for OS9 binaries are stored as one or more CODE resources, so you're going to be out of luck if you can't store resource forks. That said, ISO9660 should be able to store the resource forks for you (in a separate file on the CD, but organised such that OS9 can find it) - see this article for a bit more background information.

    Hope that helps.

Re: How to run MacOS Classic app in OSX? system() can't run it..
by digger (Friar) on Feb 03, 2006 at 17:40 UTC

    The resource fork holds information about the windows, dialog boxes, images, etc. used by the application. Once the resource fork is trashed, the application is dead.

    The best way to transfer a Mac app and keep its resource fork is to use StuffIt to binhex or just stuff the file before sending via email, ftp, or burning to a CD that doesn't maintain the resources.

    If you can get the file stuffed, and then FTP it again, you should have a working application. Burn the stuffed file to CD, and then instruct your end user to un-stuff it at their end. StuffIt Expander is available as a free download

      Thank you very much for your answers!!! The app in question needs to be run directly from cdrom. It's Flash Projector. I guess the utility that created that flash projector needs to be replaced with other one, that generates OSX binaries..

      Thanks again!