Hello everybody,

I hope this is the right forum to post my question. It's a bit "in-between".

I am about to write an updater for a programme of mine. The updater downloads an update-file from my server that has packed all files I want to replace and executes a simple script.
Now all works file apart from the executable (programme.app/Contents/MacOS/programme), that MacOS doesn't accept as a binary file: it says its plain text.
What can I do in this case? How can I set the type of that file so that it becomes a normal executable? (How) Can I use the programme /Developer/Tools/SetFileType?

Many thanks in advance
Simon

Stupid question: have you checked to make sure that the binary has executable permissions?

Thanks indeed. I guess that couldt had been the problem. In the net I've seen a solution that uses SetFile, but it seems to be enough to simpy set the permission to +x.

Thank you, you helped me a lot!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.