It doesn't seem to be a chmod privileges issue. It just turned out that performing "SetFile -a l" on each of the files in the runtime app bundle solved the problem. However, this still seem odd to me. Why would FM want to lock some of its runtime files? I can't make perfect sense of that. Is that just a (bug-ish) leftover from the old days?
I've not run into this issue, requiring a SetFile command. What I did was first create a POSIX compliant .app file - your description appears to have already accomplished that.
-- Mac path to a hidden script file in the bundle. CHANGE THE NEXT LINE TO MATCH YOUR RUNTIME FOLDER AND APP NAME
sethiddenscriptpathto (((path tome) astext) & "Contents:Resources:First_Tasks_First:First_Tasks_First.app")
-- Converting the Mac path to a Posix path
set hiddenscriptpath to POSIX path of hiddenscriptpath
-- Quoting the Posix path
set qtdhiddenscriptpath to quoted form of hiddenscriptpath
-- executing the script file
set command to "open " & qtdhiddenscriptpath
-- display dialog qtdhiddenscriptpath
do shell script command
Kinda cool to have a double-clickable, single .app file of your runtime. !!!
You apparently have copied your runtime into the PACKAGE CONTENTS > RESOURCES folder?
Running Packagemaker against that, should bring up a number of warnings, but no errors. In the build output window. clicking the magnifying glass icon on the right, highlights the error condition, and explains the repair. Once done, the build completes.
The issue I have is that PackageMaker is not compatible with the Apple App Store; apparently Packagemaker created the .pkg file, but is missing the archive step. Attempting to create the build using the compatible command line tool, productbuild, gives me an error that I am, as yet, unable to resolve.
sudo productbuild --component /Users/kirkr/Desktop/First_Tasks_First.app /Applications --sign "3rd Party Mac Developer Application: developernamehere" FirstTasksFirst.pkgproductbuild: Adding component at /Users/kirkr/Desktop/First_Tasks_First.appproductbuild: error: Can't write temporary package to "/var/folders/zz/zzzivhrRnAmviuee+++++++++++/-Tmp-/productbuild.HA0fKC/First_Tasks_First.app.pkg" (Path "/Users/kirkr/Desktop/First_Tasks_First.app" is not a valid bundle component (using destination path "/Users/kirkr/Desktop")).