New topic: Automatically Relaunching Application
<http://forums.realsoftware.com/viewtopic.php?t=32282> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message rbasic20091005153 Post subject: Automatically Relaunching ApplicationPosted: Sun Jan 31, 2010 11:05 pm Joined: Sat Apr 04, 2009 5:10 pm Posts: 669 Hola, I'm using Mr. Restrepo's PreviewCanvas with an app that I'm currently developing. I cannot find out the cause or a cure, but this plug-in becomes unstable (no offense or blame to the developer) after the user closes a Preferences window. For now, closing the Preferences window will force the application to quit itself. And I'm exploring the possibility of application's restarting itself. Reading a topic that Dave of San Diego first opened, Tim suggests the following lines. Code:app.ExecutableFile.Launch quit If I use it, the application will re-launching itself. Great... But the Terminal will open itself to do the job, which doesn't quit look pretty. Another suggestion comes with an AppleScript file. Code:tell application "Finder" delay 0.5 open container of container of container of (path to me) end tell Okay. This solution partially works. AppleScript's Script Editor will launch itself, and my application will not be launched unless I press the Run button on the Script Editor. I don't know what's responsible for it. Perhaps, it's Sparkle or whatever, which I don't use or will not use. Some apps will re-launch themselves after updates are downloaded. Anyway, are there better solutions than those two suggestions above? Muchas gracias for your advice. Tom _________________ Mac OS X 10.5.8/REALBasic 2008 R5.1 ~ REALBasic 2009 R4 Don't MBS-spam me. Don't plugin-spam me. No thanks. Top rbasic20091005153 Post subject: Re: Automatically Relaunching ApplicationPosted: Mon Feb 01, 2010 4:06 am Joined: Sat Apr 04, 2009 5:10 pm Posts: 669 Never mind... Silly me again... _________________ Mac OS X 10.5.8/REALBasic 2008 R5.1 ~ REALBasic 2009 R4 Don't MBS-spam me. Don't plugin-spam me. No thanks. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
