Quick feature in an apple script

Posted on 2012-08-29
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

    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

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    A lot of new and distinct gadgets are making their appearance every other day. The latest gadget that has wooed the attention of all gadget lovers and non gadget lovers alike is the Smartwatch. This tiny gadget is capable of offering live access to …
    This is a short article about OS X KeRanger, and what people can do to get rid of it.
    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 > …
    Users will learn how to set proper sequence settings, scale images, paste attributes, add transitions, fades, and music. Open up Final Cut Pro 7 and Create a new Project: Set the Sequence Settings. a) Click File > Easy Setup > Format > Apple ProRe…

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now