OK, I really need help with this...
I have included a .zip (link below) which has a small test bed AIR app including all source...
When running installed AIR app (Copy doesn't work):
version: MAC 10,1,53,64
When previewing from .fla in Flash IDE (Copy does work):
version: MAC 10,0,12,36
Please please please help!
[EDIT] So it looks like I just can't copy from the applicationDirectory. But I dont want to have to include extra files with the installer I wanted to include it in the installer. Is there any way for me to do this?
[EDIT 2] I have tried a extracting a .zip included in the package with FZip and ZipLib, both produce the same results, the .app doesnt work.
I have found the exact problem...
When copying an app Projector... (from File.applicationDirectory)
The file: "Presenter.app/Contents/MacOS/Flash Player" which is originally a Unix Executable File that opens with Terminal copies to a Document that opens with TextEdit.. somehow the file loses its attributes.
I'll download your project and see if I can reproduce it today.
Any news Chris?
My deadline for this is today and I am going to have to send out a bodge version just to get this working.
I believe this problem you are running into is caused by AIR's lack of support for file attributes when copying. I think you could try a couple of workarounds. First, please try moveTo(), I found that this approach allowed my test package's attributes to stay in place. Your other options would be to use AIR2's new NativeProcess api and call chmod after the copy to tweak the attributes or write a shell script that does the copying / attribute twiddling afterwards.
I'd also like to recommend adding a feature request for file attribute support while copying on our ideas.adobe.com website!
Hope this helps,