Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > Schedule opening/closing of apps at specific times.

Schedule opening/closing of apps at specific times.
Thread Tools
phi
Fresh-Faced Recruit
Join Date: Nov 2006
Status: Offline
Reply With Quote
Feb 24, 2007, 03:21 AM
 
Hey all,

I would like to schedule the opening and closing of specific applications at specific times.

The reason why I would like to do so is that I use alarm apps like Awaken and Aurora. However, they require that ‘Password while Screen-saver is running’ is disabled. I use a password protected screen-saver to prevent curios colleagues from poking my Mac when I’m out for lunch.

The developers have suggested that I run the specific alarm application when I need to and close it after the alarm has sounded. The password protection for the screen-saver will be enabled when the alarm app is closed. Is there any application that can schedule the alarm app to do so?

I have found apps like MacAT, Lingon & Cronnix. While they can open apps at specific time, I don’t think they can close apps at specific times. Well, at least I don’t know how to.

Any help is appreciated.

Thanks guys!
( Last edited by phi; Feb 24, 2007 at 03:22 AM. Reason: Formatting wrong)
     
brokenjago
Mac Elite
Join Date: Sep 2005
Location: Los Angeles, California
Status: Offline
Reply With Quote
Feb 24, 2007, 04:24 AM
 
You can always dabble in AppleScript.

That should be able to do it for you.
Linkinus is king.
     
phi  (op)
Fresh-Faced Recruit
Join Date: Nov 2006
Status: Offline
Reply With Quote
Feb 24, 2007, 08:16 PM
 
Anyone has any ideas?
     
phi  (op)
Fresh-Faced Recruit
Join Date: Nov 2006
Status: Offline
Reply With Quote
Feb 24, 2007, 08:17 PM
 
Originally Posted by brokenjago View Post
You can always dabble in AppleScript.

That should be able to do it for you.
I would think so but I'm not exactly very tech savvy in that regard.
     
itai195
Addicted to MacNN
Join Date: May 2001
Location: Cupertino, CA
Status: Offline
Reply With Quote
Feb 25, 2007, 12:27 AM
 
It's not really clear to me what you're asking for. Using AppleScript, you can make an application that does nothing more than close another application. Open /Applications/AppleScript/Script Editor and enter a command like this: tell app "myApp" to quit

Replace myApp with the name of the application you want to close. Go to File > Save As and save the script as an application. Now you can use one of the apps you listed to run your script, and thus close the app, at a specified time.
     
brokenjago
Mac Elite
Join Date: Sep 2005
Location: Los Angeles, California
Status: Offline
Reply With Quote
Feb 25, 2007, 01:27 AM
 
He wants them to close automatically at specific times. So if he's away from the computer, and it's 4.05 PM, he wants X app to quit.

At least I think that's what he wants.
Linkinus is king.
     
Mithras
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status: Offline
Reply With Quote
Feb 25, 2007, 10:18 AM
 
itai195 nailed it. All you need is an Applescript that reads:

tell app "Foo" to quit

and make it run at the appropraite time. You can do this in iCal, or (my vote) Lingon.
     
phi  (op)
Fresh-Faced Recruit
Join Date: Nov 2006
Status: Offline
Reply With Quote
Feb 25, 2007, 11:06 AM
 
Originally Posted by brokenjago View Post
He wants them to close automatically at specific times. So if he's away from the computer, and it's 4.05 PM, he wants X app to quit.

At least I think that's what he wants.
Thanks for the example, yep that is what I want.
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Feb 25, 2007, 01:23 PM
 
You can also launch the app via a cronjob, and kill it with a killall (which will allow him to kill processes by name). This seems infinitely easier to me than having to write an Applescript.
     
Mithras
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status: Offline
Reply With Quote
Feb 25, 2007, 04:04 PM
 
Hmm, but killall is less friendly for Mac Cocoa/Carbon apps, as it just immediately terminates the process, rather than sending a higher-level quit event.
     
TETENAL
Addicted to MacNN
Join Date: Aug 2004
Location: FFM
Status: Offline
Reply With Quote
Feb 26, 2007, 03:48 AM
 
Originally Posted by besson3c View Post
You can also launch the app via a cronjob, and kill it with a killall (which will allow him to kill processes by name). This seems infinitely easier to me than having to write an Applescript.
How hard is

tell application "iTunes" to quit

for you?
     
brokenjago
Mac Elite
Join Date: Sep 2005
Location: Los Angeles, California
Status: Offline
Reply With Quote
Feb 26, 2007, 04:17 AM
 
el oh el.
Linkinus is king.
     
itai195
Addicted to MacNN
Join Date: May 2001
Location: Cupertino, CA
Status: Offline
Reply With Quote
Feb 26, 2007, 05:50 AM
 
Originally Posted by TETENAL View Post
How hard is

tell application "iTunes" to quit

for you?
Apparently it's infinitely more difficult
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 02:33 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,