launching an app

I have managed to download the latest version of my app
I now want to run it
if I use Finder I can see it
if I run terminal I can see it
xojo doesn’t seem to be able to though (or I’m asking it the wrong thing)
(ok I know it’s me!)
I have downloaded myApp.zip to the current folder :slight_smile:
I have launched myApp.zip
it has created myApp.folder
in there I can see myApp.app (I can double click it and it launches fine - manually)

what incantation do I need for xojo to see it and let me launch it?
thanks
Mike

MAC OS X 10.8.3
MacBook Pro Retina 16GB

I’m a little confused. In what way do you expect or want Xojo to “see” it?

I want my code to include

f = GetFolderItem("myApp/myApp.app") if f.Exists then f.Launch end if
but it never seems to exist

Don’t use paths when getting FolderItems. Start at a known point, then use Child to drill down (or Parent to move up).

When you say you downloaded it to the “current folder”, which one do you mean? Next to your project?

Are you attempting to launch a helper app?

[quote=101009:@Kem Tekinay]Don’t use paths when getting FolderItems. Start at a known point, then use Child to drill down (or Parent to move up).

When you say you downloaded it to the “current folder”, which one do you mean? Next to your project?[/quote]
I’ll try the “child” method, thanks

yup downloaded into the same folder as the install app

I think so, I want the installer to:
a) download the app - done that
b) launch the app - struggling!

Launching the app is easy, it’s just identifying where the app is that’s hard.

Try this: Start with App.ExecutableFile and work your way up from there to get to the right directory. Or use GetOpenFolderItem to the user can choose.

Now that I’ve re-read this a couple times.
Are you trying to self-update and then launch your app?

For an helper, you can watch this : https://forum.xojo.com/12479-helper-apps-and-the-sandbox/23#p97267

[quote=101052:@Tim Parnell]Now that I’ve re-read this a couple times.
Are you trying to self-update and then launch your app?[/quote]
Yes exactly that
App launches installer - that bit works
Installer downloads new software - that bit works
The bit I’m struggling with is finding the new executable to launch
Cheers

I can highly recommend the updaterKit from Monkeybread for doing this sort of thing: http://www.monkeybreadsoftware.de/xojo/UpdaterKit/

Take care with it, it won’t work if you sandbox your App :frowning:

Kem had the missing piece of the jigsaw
it seems that even though it looked like I had the right path to the executable, the “child” trick made it all work

of course, one has to wonder WHY an apparently good path didn’t work, but that’s tomorrow’s question!
cheers
:slight_smile: