Mac OS-X standalone from Windows machine

Richard Gaskin ambassador at fourthworld.com
Wed Mar 22 00:58:29 EST 2006


J. Landman Gay wrote:
> Levi Kendall wrote:
>>   I'm having a bit of a problem making a standalone application for OS-X
>> from a Windows machine.  Actually making it is not the problem really,
>> running it is.  The save to standalone works fine and I end up with what I
>> am assuming is the executeable in a structure that looks as such:
>> 
>> My Application.app \ Contents \ MacOS \ My Application
>> 
>>   What seems to be the problem is the file at the end "My Application" does
>> not get the execute flag set on it when being transfered to the OS-X
>> filesystem.  My current method of transport was simply to zip the entire
>> directory and then unzip the file on the Mac.  This would leave the
>> directory structure as is, which I'm assuming is necessary.  However the
>> problem is the "My Application" executeable needs to have CHMOD run on it in
>> order to properly execute because of the execute flag missing on the OS-X
>> filesystem.
>> 
>>   Does anyone have any solution to work around this?  Is it necessary to
>> have some kind of "installer" program to properly set this up on the OS-X
>> end?  Or is there another way to handle it?  If at all possible, I would
>> like to be able to handle this from the Windows machine, rather than
>> actually needing an OS-X box.
> 
> I'd like to know the answer to this too. Has anyone else experienced this?

As far as I can tell, chmod affects elements in the Unix file system 
that simply aren't present in Windows, much as the old Mac apps needed a 
resource fork that was possible only on Apple's HFS.

So as far as I can tell, Levi's original guess that chmod was needed is 
consistent with what I've had to do to get the executable within the 
bundle to have its permissions set correctly:

    get shell("chmod ugo+x" && quote & tDestFile & quote)

If there's some other way to write the file on a non-Unix system and be 
copy it to OS X with the executable permissions in place I'd love to 
learn about it.

--
  Richard Gaskin
  Managing Editor, revJournal
  _______________________________________________________
  Rev tips, tutorials and more: http://www.revJournal.com



More information about the use-livecode mailing list