1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| tell application "Power Manager Scripting"
tell workshop
set myEvent to make new event with properties {id:"myWakeEvent", name:"Wake up for work"}
-- Create a daily trigger
make new trigger daily at front of triggers of myEvent with properties {seconds from midnight:(8 * 60 * 60),availability:wake up, days: [Monday, Tuesday, Wednesday, Thursday, Friday]}
end tell
-- Deploy the event
tell Event Store to store these events myEvent
-- Clean up
tell the workshop to empty
end tell |
Partager