Quick feature in an apple script

Posted on 2012-08-29
Medium Priority
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.
Question by:weklica
LVL 13

Accepted Solution

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.

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.


Author Closing Comment

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.

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