Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
3  
Can't you just add it as a login item? –  Svish Apr 5 '10 at 17:57
add comment

migrated from stackoverflow.com Apr 5 '10 at 17:53

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

4 Answers

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

share|improve this answer
1  
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
add comment

Does it NEED to be Python? OS X comes with Automator, (http://www.apple.com/downloads/macosx/automator/) which is sort of designed for these kinds of tasks.

share|improve this answer
add comment

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

share|improve this answer
add comment

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 Skype.app and press OK
  5. You're done.

or

  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/Skype.app) 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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.