Re: ? regarding rebooting apps using an applescript
Re: ? regarding rebooting apps using an applescript
- Subject: Re: ? regarding rebooting apps using an applescript
- From: Ramona Rock <email@hidden>
- Date: Sat, 19 Apr 2008 14:00:51 -0700
Title: Re: ? regarding rebooting apps using an applescript
Thanks!
Incidentally, does anyone know if “activate” will activate Entourage even if it’s hung/crashed/inactive? I’m guessing it wouldn’t, that I’d probably have to quit it first . . . but this is hard to test because I’ll need the condition of crash while attempting to operate the script before I’ll know, I suppose. (I don’t know how to induce the condition of hung/crashed/inactive, it just happens all by itself seemingly at random.) I guess I can just quit it periodically and reactivate it no matter what, but it would be slightly preferable if I could leave it active if it was NOT actually crashed.
Thanks again!
On 4/19/08 12:25 PM, "email@hidden" <email@hidden> wrote:
To restart an application I use that example of script :
tell application "Microsoft Entourage" -- in your case
quit
delay 3
-- Useful…
-- If other applications are actives and a little bit "heavy".…
tell application "Microsoft Entourage"
activate
end tell
-- Windows of application are restored
end tell
It works very well with Finder (or Mail) when a script (Finder or Mail) is in a loop
(during debugging for example) without quit the Script Editors and lost the script...
I don't know how to test if an application is running or not.
Le 19 avr. 08 à 19:31, Ramona Rock a écrit :
Hi there, I'm mostly a newbie to Applescript. I was hoping this would be a
totally easy question for someone on this list.
Microsoft Entourage often "hangs" (crashing, unresponsive except for rainbow
ball rolling perpetually, listed as "not responding" in the Force Quit
Applications menu when I bring that up manually) on me. I'd prefer it stay
active more or less perpetually whenever my computer is on, to periodically
check for new email. (I'm not sure why this is happening, perhaps I need to
upgrade to the new version of Office, perhaps my Entourage database is too
large . . . but those are other questions I'll probably investigate another
time. And no, for a couple of work-related reasons I can't use Apple's Mail
at this time.)
In the meantime, I was wondering if I could make a little self-contained
Applescript app to periodically check to see if Entourage is running, and
then if not (if it "hung"), force quit that application, then reboot it.
???
Any responses appreciated!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden