My goal is to write a simple Start.exe and Start.app for a DVD project. The only purpose is to start the actual (more complex but no PureBasic) .app or .exe within a subfolder. So I thought PureBasic might be a good choice, but now I wonder if this is maybe not the case?
I started with the Mac OS X version and was able to start the "Flash Player" Unix program within the application bundle:
Code: Select all
programmFilename$ = ProgramFilename()
; .../Workspace/Start-Application.app/Contents/MacOS/Start-Application
rootDirectoryName$ = GetPathPart( programmFilename$ )
; .../Workspace/Start-Application.app/Contents/MacOS/
applicationSubDirectories$ = "/Contents/MacOS/"
applicationName$ = Left( rootDirectoryName$, Len( rootDirectoryName$ ) - Len( applicationSubDirectories$ ) )
rootDirectoryName2$ = GetPathPart( applicationName$ )
startApplicationName$ = rootDirectoryName2$ + "sys_data" + "/" + "ApplicationDesktopLoader.app"
startApplicationName$ = startApplicationName$ + "/Contents/MacOS/Flash Player"
Application = RunProgram( startApplicationName$ )
1. How can I bring the new application to the front with focus?
2. Do I really need to start the bundled Unix program directly or is there another way to start the .app bundle (which might also answer question 1)?
3. Will the answer to question 1 will be crossplattform (Win/Mac)?
4. Is there an easier (without PureBasic) way to create such Start.exe / .app?
I thought this would take only an hour or so and now I'm stuck...
I would love to get some hint's or help!
Kind regards