AppleScript
make new timer with properties {…}timerCreates a new timer without starting it.
begin timernothingStarts or resumes a timer.
pause timernothingPauses a running timer.
stop timernothingStops and deletes a timer.
idtextread-onlynametextread/writetimer statetimer running | timer paused | timer ringingread-onlydurationintegerread/writeWritable until the timer first starts; a write after that fails.
remaining timeintegerread-onlytarget datedate | missing valueread-onlymissing value before the timer starts, and while it rings.
creation datedateread-onlyringtonetextread/writetimer volume modesystem | customread/writetimer custom volumerealread/writeidtextread-onlynametextread-onlydurationintegerread-onlyringtonetextread-onlytimer volume modesystem | customread-onlytimer custom volumerealread-onlycreation datedateread-onlyhistory indexintegerread-onlybegin stopwatchnothingStarts or resumes the stopwatch.
pause stopwatchnothingPauses the stopwatch.
lap stopwatchnothingRecords a lap.
stop stopwatchnothingStops and resets the stopwatch.
idtextread-onlystopwatch statestopwatch running | stopwatch paused | stopwatch stoppedread-onlystart datedate | missing valueread-onlymissing value while the stopwatch is stopped.
total timerealread-onlysplit timerealread-onlylap countintegerread-onlylapslist of realread-onlymake new alarm with properties {…}alarmCreates a new alarm.
delete alarmnothingDeletes an alarm.
enable alarmnothingEnables and schedules an alarm.
disable alarmnothingDisables an alarm.
stop alarmnothingStops a ringing or snoozed alarm.
snooze alarmnothingSnoozes a ringing alarm.
idtextread-onlynametextread/writeenabledbooleanread/writehourintegerread/writeminuteintegerread/writeringtonetextread/writealarm volume modesystem | customread/writealarm custom volumerealread/writerepeat dayslist of integerread/writesnooze enabledbooleanread/writesnooze durationintegerread/writenext trigger datedate | missing valueread-onlymissing value while the alarm is disabled.
creation datedateread-onlyalarm statealarm disabled | alarm scheduled | alarm ringing | alarm snoozedread-onlyidtextread-onlynametextread-onlyartisttextread-onlyalbumtextread-onlyarttext | missing valueread-onlyA file path. missing value for ringtones that carry no art of their own.
idtextread-onlynametextread-onlyartisttextread-onlyalbum arttextread-onlyevery ringtonelist of ringtoneread-onlyAn element, addressed as every ringtone of <album>.
every timerlist of timerevery saved timerlist of saved timerevery alarmlist of alarmevery ringtonelist of ringtoneevery ringtone albumlist of ringtone albumstopwatchstopwatch sessionmost recent ringtoneringtone | missing valueEach brings Wick to the front and selects the item, leaving it exactly where clicking it in the menu bar would.
show timernothingOpens Wick's window with the timer selected.
show alarmnothingOpens Wick's window with the alarm selected.
show stopwatchnothingOpens Wick's window on the stopwatch.
Distributed Notifications
Posted on DistributedNotificationCenter as nbahne.Wick.event.<name>. Payload values are strings; id matches the dictionary’s, and name is the label, which can be empty.
timerStartedid, nameA timer started counting down.
timerPausedid, nameA running timer was paused.
timerResumedid, nameA paused timer resumed.
timerStoppedid, nameA timer was stopped and removed.
timerFinishedid, nameA timer reached zero and began ringing.
timerEditedid, name, fieldA timer property changed. field names the property that changed.
stopwatchStartedid, nameThe stopwatch started.
stopwatchPausedid, nameThe stopwatch was paused.
stopwatchResumedid, nameThe stopwatch resumed.
stopwatchLapRecordedid, name, lap, lapDurationA lap was recorded. lap is the new lap count, lapDuration its length in seconds.
stopwatchStoppedid, name, finalElapsedThe stopwatch was stopped and reset. finalElapsed is the time it held in seconds.
alarmCreatedid, nameAn alarm was created.
alarmDeletedid, nameAn alarm was deleted.
alarmEnabledid, nameAn alarm was enabled and scheduled.
alarmDisabledid, nameAn alarm was disabled.
alarmEditedid, name, fieldAn alarm property changed. field names the property that changed.
alarmFiredid, nameAn alarm reached its time and began ringing.
alarmSnoozedid, name, snoozedUntilA ringing alarm was snoozed. snoozedUntil is an ISO 8601 date.
alarmStoppedid, nameA ringing or snoozed alarm was stopped.