Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Isadora: General:
auto restart on crash

 

 


nic
Novice

Sep 21, 2007, 6:31 AM

Post #1 of 4 (1163 views)
Shortcut
auto restart on crash Can't Post

Hi Folks,
Just wondered if anyone knew a way to do this:

if Isadora crashes (i.e. "The application has unexpectedly quit....") is there any way in which OSX or Isadora can be set to automatically restart the patch?

It would be very helpful when running an installation over a long period of time, particularly when there's no technical support at the venue:
In case you're wondering, I run a lot of high res full screen video which does crash the machine from time to time.
thanks,
Nic.


Mark Coniglio
TroikaTronix / Moderator

Sep 22, 2007, 8:57 AM

Post #2 of 4 (1154 views)
Shortcut
Re: [nic] auto restart on crash [In reply to] Can't Post

Dear Nic,

There isn't really a way to do this automatically... but I will consider adding it. Obviously in the situation you describe, it could be very important.

One idea, try this Applescript:

on CheckForRunningApp(appName)
tell application "Finder"
set procList to the processes
set procNames to ""
repeat with p in procList
set procNames to procNames & the name of p & return
end repeat
return procNames contains appName
end tell
end CheckForRunningApp

on run
repeat while true
tell me to set isRunning to CheckForRunningApp("Isadora")
if (isRunning is false) then
tell application "Finder"
open file "isadora-document.izz" of folder "folder2" of folder "folder1" of startup disk
end tell
end if
delay 30
end repeat
end run

(I've attached the actual script to this post.)

This will check every 30 seconds to see if Isadora is running. If not, it will open the requested file. Of course, you'll have to replace

open file "isadora-document.izz" of folder "folder2" of folder "folder1" of startup disk

with a real document of your own.

Finally, since you're having the occasional crash, I'd like to see the crash report if possible. See this page http://troikatronix.com/izzy-crash-report.html for info on how to give me this information.

Best Wishes,
Mark

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Mark Coniglio / TroikaTronix
Creator of Isadora
Attachments: auto-restart-isadora.scpt (3.15 KB)


zelig
Novice

Sep 28, 2007, 4:25 AM

Post #3 of 4 (1131 views)
Shortcut
Re: [Mark Coniglio] auto restart on crash [In reply to] Can't Post

there is an app called keep it up at (http://users.skynet.be/keepitup/)
i have recently used it in a bluetooth jacking installation that was running for two weeks and it worked a charm.

definitely worth checking out.


nic
Novice

Oct 26, 2007, 7:59 AM

Post #4 of 4 (1069 views)
Shortcut
Re: [nic] auto restart on crash [In reply to] Can't Post

Hi Mark and Zelig,
I've only just had time to look at your answers. Both work, hurrah, so many thanks all round! I must say that the Keep-it-Up application is very convenient for anyone leaving a mac-based installation running for more than a week, particularly seeing as it will also restart the Mac if the application restart isn't enough.
ta,
Nic.
SmileSmile

 
 
 


Search for (options) copyright © TroikaTronix 2007