?
Solved

Quick feature in an apple script

Posted on 2012-08-29
2
Medium Priority
?
798 Views
Last Modified: 2012-09-19
I need to monitor an application that tends to freeze and require a force quiet every now and then.  I can do 'killall APPname' and it will force quit it when in this frozen quit mode.  However, I would like this script to loop and only force quit when necessary.  So, how can I have terminal ask the app if it is away or frozen and then proceed to kill the app if frozen?

Thanks in advance.
0
Comment
Question by:weklica
2 Comments
 
LVL 13

Accepted Solution

by:
Xaelian earned 1500 total points
ID: 38352301
Well it's not possible now with native mac programming. But you can do it with a sikuli script.
http://sikuli.org/index.shtml

I've found a forumpost from someone who wants to do the same as you. I took one with some code in the latest post.

http://community.spiceworks.com/topic/146571-mac-script-or-program-to-detect-not-responding-app-and-automatically-force-quit
0
 

Author Closing Comment

by:weklica
ID: 38414700
Not quiet what I was looking for, but I got it figured out.  This will be good for me to look into for other reasons moving forward anyway, so I appreciate the link.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A common question or need, when setting-up a new Mac for someone would be to make all of the applications, installed, available from the dock. Many people often do not realize an application is installed unless it is in the dock. Creating a custo…
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
Users will learn how resize a batch of photos from a single command in Photoshop via Photoshop's Image Processor. Open up an Image you'd like to resize in Adobe Photoshop: Adjust the image size according to your preferences. Image > Adjustments > …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question