Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   OS X - Apps and Games (http://www.mac-forums.com/forums/os-x-apps-games/)
-   -   Automator: Closing Application (http://www.mac-forums.com/forums/os-x-apps-games/175218-automator-closing-application.html)

shinsengumii 11-10-2009 08: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 09: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 10: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-11-2009 12:44 AM

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 01:35 AM

AH~ now it works!

HAHAH! thank you both!

Theonnie 06-29-2011 04: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 12:19 PM

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 12:48 PM

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


All times are GMT -4. The time now is 04:58 AM.

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