Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am tired of opening Skype everday; I need a little script to set the hour to open and the hour to close.

share|improve this question

migrated from Apr 5 '10 at 17:53

This question came from our site for professional and enthusiast programmers.

Can't you just add it as a login item? – Svish Apr 5 '10 at 17:57

Set up an iCal event, repeating everyday and telling him to Run Script as an alarm.

share|improve this answer
If you are always logged on, use iCal. If you only log on for Work, have it start up on login. – Mike Wills Apr 5 '10 at 19:21

Does it NEED to be Python? OS X comes with Automator, ( which is sort of designed for these kinds of tasks.

share|improve this answer

Or you could have it on a crontab (think something like launchd in OS X)

share|improve this answer

Do you open Skype on log in? If so, add Skype to your login items as when you log out it will shut the program down as well.

To add a program to your Login Items:

  1. Open up System Preferences
  2. Click the Accounts Preference Pane
  3. Click on Login Items
  4. Press the '+' symbol and find and press OK
  5. You're done.


  1. Right/Control click on Skype in your Dock and choose "Open At Login" (in the Options submenu in Snow Leopard)

If for some reason logging in and out doesn't work for you Automator or a timed script (using cron, launchd or iCal) is possible. For how to do this check out Question 126907 (How can I get a script to run every day on Mac OS X?). You'll just have to set up it up twice, with one script opening Skype (open /Applications/ and another quitting Skype (eg. killall Skype - for a force quit). You can set the times it opens and closes using those scripts.

share|improve this answer

You must log in to answer this question.