Mac Forums

Mac Forums (
-   OS X - Apps and Games (
-   -   Automator: Closing Application (

shinsengumii 11-10-2009 07:57 PM

Automator: Closing Application
Hi guys,

I was just wondering how to get Automator to close an application at a scheduled time.

How would I go about doing that?

Kind regards.

nabl 11-10-2009 08:40 PM

I'm not sure how you could do that with Automator alone, but if you combine it with iCal, it isn't hard. Here's what to do:

1. Open Automator and choose the Application template for your new project.
2. Use the search box to find the Quit Application action. Add it to your project and select the application you want to quit from the pop-up menu.
3. Save the project wherever you want—just remember where—and quit Automator.
4. Open up iCal and double-click on the day you want to close the application (or the day you want to begin closing it if you plan on repeating it).
5. In the New Event pop-up, choose when you want the application to close for the from option and whether and how often you want it to repeat.
6. For the alarm option, choose Open File. This will add a few more options. Click the next alarm option and choose Other… and navigate to the file you created in Automator. Finally, choose how many minutes before or after the from date you want the application to quit.
7. Configure anything else you want here and then click done. When the time you choose rolls around, it should quit the application for you.

shinsengumii 11-10-2009 09:48 PM

Hi Nabi,

Thanks heaps for the suggestion.

Everything worked except for when Automator opens up, it does not actually perform the "Quit Application" because i have not pressed the Play function.

All iCal did was to open the file but Automator never shut down the application.

Kind regards.

iPod Nano 11-10-2009 11:44 PM

You can export the automator script as an application. That way, you don't have to hit anything, it just starts when scheduled, completes it's task, and quits:)

shinsengumii 11-11-2009 12:35 AM

AH~ now it works!

HAHAH! thank you both!

Theonnie 06-29-2011 03:17 AM

I'm trying to get automator to quit an application for me at a specific time everyday. I've saved the workflow as an application, and tried to schedule it to run via iCal, as in setting the alarm as "open file" and choosing my application. However, it isn't working...what am I doing wrong? :(

Thanks in advance!!

Slydude 06-29-2011 11:19 AM

Which version of the OS do you have? The process of doing this has changed a bit from the first version of Automator to now.

If you are running Snow Leopard launch Automator and choose to create an iCal alarm. I believe it takes care of most of the process for you when it is time to create the alarm.

Theonnie 06-29-2011 11:48 AM

Thank you so much Slydude! The iCal Alarm worked! =D

blewvelvet 04-14-2015 08:38 PM

But What if....
The application is not open?

How do I CHECK to see if it's open first...if so...quit the automator app at that point in the process?

Slydude 04-14-2015 09:38 PM


Originally Posted by blewvelvet (Post 1653086)
The application is not open?

How do I CHECK to see if it's open first...if so...quit the automator app at that point in the process?

Can you explain a bit more? Are you trying to check to see if a third party app is running or trying to check to see if an app that you built using Automator is running? The more you can tell us about what you're trying to do the better our answers may be.

All times are GMT -4. The time now is 12:18 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.