Telling an app to restart itself

I have an app that needs a feature to restart itself. I can make it simply say “quit”, but since that stops the app, it can’t tell itself to “activate” because it is off and can’t give itself commands. Is there any applescript command to make an app restart itself?

Hi Macman,

no idea if there is a more elegant solution but you might try something like this:

	do shell script ("osascript -e 'tell application \"Finder\" to open (\"" & (get path of main bundle) & "\" as POSIX file) '  &> /dev/null &")
	quit

D.

Hey, that doesn’t work, any other advice?

hmm - here it does … maybe it’s a timing issue? try adding a little delay:

do shell script ("osascript -e 'delay 1 \ntell application \"Finder\" to open (\"" & (get path of main bundle) & "\" as POSIX file) ' &> /dev/null &")
quit