• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Killing a process at a certain time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Killing a process at a certain time


  • Subject: Re: Killing a process at a certain time
  • From: "Marc K. Myers" <email@hidden>
  • Date: Tue, 04 Sep 2001 01:30:04 -0400
  • Organization: [very little]

> Date: Tue, 04 Sep 2001 00:30:05 -0400
> From: Chris Garaffa <email@hidden>
> Subject: Killing a process at a certain time
> To: email@hidden
>
> 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 :)

There are a number of applications that will do that for you. My
favorite is the freeware iDo Script Scheduler which ships on several
versions of the Mac OS install CDs. It's also available from
<www.sophisticated.com/products/ido/ido_ss.html >. The other option is
to use a stay-open script with an idle handler that's set to activate at
a certain time. The disadvantage to this approach is that you have to
leave the script running all the time with the danger that someone might
inadvertently shut it down.

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[9/4/01 1:29:32 AM]


  • Prev by Date: Re: Move replacing
  • Next by Date: Re: Killing a process at a certain time
  • Previous by thread: Killing a process at a certain time
  • Next by thread: Re: Killing a process at a certain time
  • Index(es):
    • Date
    • Thread