|
|
Schedule opening/closing of apps at specific times.
|
|
|
|
Fresh-Faced Recruit
Join Date: Nov 2006
Status:
Offline
|
|
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)
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2005
Location: Los Angeles, California
Status:
Offline
|
|
You can always dabble in AppleScript.
That should be able to do it for you.
|
Linkinus is king.
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Nov 2006
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Nov 2006
Status:
Offline
|
|
Originally Posted by brokenjago
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.
|
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: May 2001
Location: Cupertino, CA
Status:
Offline
|
|
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.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2005
Location: Los Angeles, California
Status:
Offline
|
|
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.
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status:
Offline
|
|
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.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Nov 2006
Status:
Offline
|
|
Originally Posted by brokenjago
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.
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
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.
|
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status:
Offline
|
|
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.
|
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Aug 2004
Location: FFM
Status:
Offline
|
|
Originally Posted by besson3c
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?
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2005
Location: Los Angeles, California
Status:
Offline
|
|
|
Linkinus is king.
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: May 2001
Location: Cupertino, CA
Status:
Offline
|
|
Originally Posted by TETENAL
How hard is
tell application "iTunes" to quit
for you?
Apparently it's infinitely more difficult
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|