Killing a process at a certain time
Killing a process at a certain time
- Subject: Killing a process at a certain time
- From: Chris Garaffa <email@hidden>
- Date: Tue, 04 Sep 2001 00:30:05 -0400
Hey all,
I've been trying to get cron and perl/bash working to do this with
little success, so I'm hoping there's an easier way to do it in
AppleScript. What I want is simple: iTunes needs to quit at 5:30 AM,
Monday through Friday. Is there any way to script this in AppleScript?
My problem with the UNIX tools is that the "kill" command needs a
process number corresponding to the iTunes application, and that number
changes every time iTunes is opened. I figure
tell application "iTunes"
quit
end tell
is much easier than the 20-line perl script I'm working on...
So, if there's a way to schedule an AppleScript, I'd love to know :)
Thanks
Chris Garaffa
email@hidden