New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Apps and Games Discussion of applications and games available for Mac OS X.

Automator: Closing Application


Post Reply New Thread Subscribe

 
Thread Tools
shinsengumii

 
Member Since: Aug 22, 2007
Posts: 26
shinsengumii is on a distinguished road

shinsengumii is offline
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.
QUOTE Thanks
nabl

 
nabl's Avatar
 
Member Since: Dec 13, 2007
Location: United States of America
Posts: 256
nabl has a spectacular aura about
Mac Specs: 2.1GHz MacBook with 4GB RAM, Mac OS X 10.6, iLife and iWork 09

nabl is offline
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.
QUOTE Thanks
shinsengumii

 
Member Since: Aug 22, 2007
Posts: 26
shinsengumii is on a distinguished road

shinsengumii is offline
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.
QUOTE Thanks
iPod Nano

 
iPod Nano's Avatar
 
Member Since: May 15, 2009
Posts: 1,096
iPod Nano is on a distinguished road
Mac Specs: White MacBook. iLife '09. iWork '09. Mac OS X 10.6

iPod Nano is offline
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

Chris K.
QUOTE Thanks
shinsengumii

 
Member Since: Aug 22, 2007
Posts: 26
shinsengumii is on a distinguished road

shinsengumii is offline
AH~ now it works!

HAHAH! thank you both!
QUOTE Thanks
Theonnie

 
Member Since: Jun 29, 2011
Posts: 2
Theonnie is on a distinguished road

Theonnie is offline
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!!
QUOTE Thanks
Slydude

 
Slydude's Avatar
 
Member Since: Nov 16, 2009
Location: North Louisiana, USA
Posts: 6,712
Slydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant future
Mac Specs: 2.8 GHz MacBook Pro 10.8,3 8 GB mem, 2.66 GHz Mac Pro - Dead, iPhone 4

Slydude is offline
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.

Sylvester Roque Former Contributing Editor About This Particular Macintosh

"Got Time to breathe. You got time for music." Denver Pyle as Briscoe Darling
QUOTE Thanks
Theonnie

 
Member Since: Jun 29, 2011
Posts: 2
Theonnie is on a distinguished road

Theonnie is offline
Thank you so much Slydude! The iCal Alarm worked! =D
QUOTE Thanks

Post Reply New Thread Subscribe


« Pages-table of contents | A way to reply to Outlook invitations? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
How can I start multiple instance of an application yinglcs OS X - Operating System 10 02-10-2012 09:59 PM
Facebook application facebuck55 iPod Hardware and Accessories 8 12-11-2009 08:14 PM
relaunch an application in OS X Leopard jomafaki OS X - Development and Darwin 0 06-19-2009 11:28 AM
How to call my own application instead of Phone Application when user press dial? gadget iOS and Apps 0 02-10-2009 08:59 PM
Application has to be transferred in a .sit Aikinai Switcher Hangout 4 10-18-2005 11:19 PM

All times are GMT -4. The time now is 10:28 AM.

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

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?