Re: Scheduling script execution
Re: Scheduling script execution
- Subject: Re: Scheduling script execution
- From: email@hidden
- Date: Mon, 30 Apr 2001 19:20:02 +0100
>
I'd like to be able to schedule an AppleScript to run once a week.
>
Does the Mac OS come with a facility that does that? Or is there an
>
application I can download or buy that's good for this?
Dear Sir,
You can use the Launcher within DssW Power Manager to schedule a weekly
script.
<
http://www.dssw.co.uk/powermanager/>
DssW Power Manager is a Macintosh automation and power manager suite. It
can easily handle the scheduling of scripts and is itself fully
AppleScriptable.
Please find below a script snippet to create a weekly action for you ;-)
Yours faithfully,
DssW Support
--
(* Watch out for line wraps! *)
property kActionName : "My weekly action"
property kTriggerTime : "12:15pm" -- time to trigger your scripts
property kTriggerDay : Wednesday -- day of the week to trigger the scripts
tell application "Power Manager"
-- talk to the active configuration
tell active configuration
-- talk to the Launcher
tell the launcher
-- build the trigger
-- begin this action once a week at trigger time and on trigger
day
set myTrigger to {kind:weekly, time:kTriggerTime, day of
week:kTriggerDay}
-- build the conditions
-- no conditions or modifiers are needed
set myConditions to {active conditions:{}}
-- build the tasks
-- Add your compiled scripts/applications/documents here
set myTasks to {process files:{path to me as alias}}
-- make a new action
make new action at end with properties {name:kActionName,
trigger:myTrigger, conditions:myConditions, tasks:myTasks}
end tell
end tell
end tell
--
email@hidden
Powerful Macintosh Software
Dragon Systems Software Limited (DssW)
http://www.dssw.co.uk/support/