Results 1 to 10 of 10
  1. #1
    Automator: Closing Application

    Member Since
    Aug 22, 2007
    Posts
    26
    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.

  2. #2
    Automator: Closing Application
    nabl's Avatar
    Member Since
    Dec 13, 2007
    Location
    United States of America
    Posts
    256
    Specs:
    2.1GHz MacBook with 4GB RAM, Mac OS X 10.6, iLife and iWork 09
    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.

  3. #3
    Automator: Closing Application

    Member Since
    Aug 22, 2007
    Posts
    26
    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.

  4. #4
    Automator: Closing Application
    iPod Nano's Avatar
    Member Since
    May 15, 2009
    Posts
    1,096
    Specs:
    White MacBook. iLife '09. iWork '09. Mac OS X 10.6
    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.

  5. #5
    Automator: Closing Application

    Member Since
    Aug 22, 2007
    Posts
    26
    AH~ now it works!

    HAHAH! thank you both!

  6. #6
    Automator: Closing Application

    Member Since
    Jun 29, 2011
    Posts
    2
    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!!

  7. #7
    Automator: Closing Application
    Slydude's Avatar
    Member Since
    Nov 15, 2009
    Location
    North Louisiana, USA
    Posts
    8,531
    Specs:
    2.8 GHz MacBook Pro 10.10.2, 8 GB mem, iPhone 6+
    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

  8. #8
    Automator: Closing Application

    Member Since
    Jun 29, 2011
    Posts
    2
    Thank you so much Slydude! The iCal Alarm worked! =D

  9. #9
    Automator: Closing Application

    Member Since
    Aug 27, 2009
    Posts
    4
    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?

  10. #10
    Automator: Closing Application
    Slydude's Avatar
    Member Since
    Nov 15, 2009
    Location
    North Louisiana, USA
    Posts
    8,531
    Specs:
    2.8 GHz MacBook Pro 10.10.2, 8 GB mem, iPhone 6+
    Quote Originally Posted by blewvelvet View Post
    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.
    Sylvester Roque Former Contributing Editor About This Particular Macintosh

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Closing files in application.
    By mattmould86 in forum OS X - Operating System
    Replies: 3
    Last Post: 07-06-2012, 02:38 PM
  2. Closing an Application
    By Nashh in forum iOS and Apps
    Replies: 4
    Last Post: 12-14-2011, 01:39 AM
  3. Automator - Help closing apps after Automator launches them
    By p605 in forum OS X - Apps and Games
    Replies: 0
    Last Post: 08-26-2011, 01:04 PM
  4. Application open after closing window?
    By thebrok2 in forum OS X - Operating System
    Replies: 4
    Last Post: 05-05-2010, 05:08 PM
  5. Closing an application
    By swedevb in forum Switcher Hangout
    Replies: 11
    Last Post: 05-22-2008, 07:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •