Updating running apps

Sarah Reichelt sarah.reichelt at gmail.com
Sun Mar 28 19:20:27 EDT 2010


I have some apps that when checking for updates, then offer a "Install
& Relaunch" option.
This seems really cool to me, but I haven't worked out how to do it in
my Rev apps.
If I am only updating separate sub-stacks, then I can work it out, but
if I want to update the actual application file what can I do?

I can get the existing app to download the new version, but then what?
Can a running app replace itself on disk?
Then how to tell it to quit & re-launch?

On a Mac, I guess I could spit out an AppleScript to quit the app,
re-locate the downloaded app, then restart it but the apps I have
don't seem to start an AppleScript when doing this.

Any suggestions?

Cheers,
Sarah

P.S. When I say Andre announce revSparkle I got all excited as I
thought he was offering hooks into the Sparkle updater framework
<http://sparkle.andymatuschak.org/>, but it was a different Sparkle
:-(



More information about the use-livecode mailing list