I've not tested it on a Mac, but as far as I can see, you are looking for this App by using a relative-Path.
If you run an application from the IDE, it could start from another path than as the compiled version.
So make sure that the needed app is in the right (sub-)directory you are accessing or just use an absolute path.
Just try this to make sure that the app is in the right directory:
Code: Select all
launcherPath$ = ProgramFilename()
pathToRemove$ = "SW.app/Contents/MacOS/SW"
pathToFolder$ = RemoveString(launcherPath$, pathToRemove$)
If FileSize(pathToFolder$+"run/why/world/SW.app") < 0
MessageRequester("Warning !!!", "File: "+pathToFolder$+"run/why/world/SW.app' does not exist.",#PB_MessageRequester_Ok)
End
EndIf
RunProgram(pathToFolder$+"run/why/world/SW.app/Contents/MacOS/Flash Player")
End
Further you can compare the accessed directory if you run it from the IDE and as a compiled version.