On Wed, Jul 6, 2011 at 6:54 AM, Terry Judd wrote: > On 06/07/2011 05:41 PM, "Terry Judd" wrote: > > > I¹m trying to extract and save files from a zip archive using Livecodes > > built in zip routines. It all seems to work well (I open the archive for > > reading, list the contents using the enumerateItems function and write > them > > out to file, creating any nested folders where necessary) except that Mac > > apps (bundles) that are have been extracted won¹t run despite appearing > to > > be OK (all bits and pieces are in the right places). When you attempt to > > launch an unzipped app it flashes in the dock and then quits. If I unzip > the > > archive by double-clicking it in the Finder the Mac apps work just fine. > > > > Am I missing something? > > OK, I've tracked the problem down to the executable inside the MacOS folder > inside the bundle. Doing a 'get info' on the original and unzipped > executables reveals the original is a 'Unix Executable File (Intel)' while > the unzipped version is a 'Terminal.app Document'. The two files appear to > be identical otherwise. > > How would I go about changing a terminal document to a unix executable? > > Terry... > > -- > Dr Terry Judd | Senior Lecturer in Medical Education > Medical Education Unit > Melbourne Medical School > The University of Melbourne >
In Terminal, type chmod 755 /path/to/file2becomeExecutable. In fact, you can drag the file into terminal to get the path too. ˜Roger _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode