WickWick

AppleScript

  • make new timer with properties {…}timer

    Creates a new timer without starting it.

    begin timernothing

    Starts or resumes a timer.

    pause timernothing

    Pauses a running timer.

    stop timernothing

    Stops and deletes a timer.

  • id
    textread-only
    name
    textread/write
    timer state
    timer running | timer paused | timer ringingread-only
    duration
    integerread/write

    Writable until the timer first starts; a write after that fails.

    remaining time
    integerread-only
    target date
    date | missing valueread-only

    missing value before the timer starts, and while it rings.

    creation date
    dateread-only
    ringtone
    textread/write
    timer volume mode
    system | customread/write
    timer custom volume
    realread/write
  • id
    textread-only
    name
    textread-only
    duration
    integerread-only
    ringtone
    textread-only
    timer volume mode
    system | customread-only
    timer custom volume
    realread-only
    creation date
    dateread-only
    history index
    integerread-only
  • begin stopwatchnothing

    Starts or resumes the stopwatch.

    pause stopwatchnothing

    Pauses the stopwatch.

    lap stopwatchnothing

    Records a lap.

    stop stopwatchnothing

    Stops and resets the stopwatch.

  • id
    textread-only
    stopwatch state
    stopwatch running | stopwatch paused | stopwatch stoppedread-only
    start date
    date | missing valueread-only

    missing value while the stopwatch is stopped.

    total time
    realread-only
    split time
    realread-only
    lap count
    integerread-only
    laps
    list of realread-only
  • make new alarm with properties {…}alarm

    Creates a new alarm.

    delete alarmnothing

    Deletes an alarm.

    enable alarmnothing

    Enables and schedules an alarm.

    disable alarmnothing

    Disables an alarm.

    stop alarmnothing

    Stops a ringing or snoozed alarm.

    snooze alarmnothing

    Snoozes a ringing alarm.

  • id
    textread-only
    name
    textread/write
    enabled
    booleanread/write
    hour
    integerread/write
    minute
    integerread/write
    ringtone
    textread/write
    alarm volume mode
    system | customread/write
    alarm custom volume
    realread/write
    repeat days
    list of integerread/write
    snooze enabled
    booleanread/write
    snooze duration
    integerread/write
    next trigger date
    date | missing valueread-only

    missing value while the alarm is disabled.

    creation date
    dateread-only
    alarm state
    alarm disabled | alarm scheduled | alarm ringing | alarm snoozedread-only
  • id
    textread-only
    name
    textread-only
    artist
    textread-only
    album
    textread-only
    art
    text | missing valueread-only

    A file path. missing value for ringtones that carry no art of their own.

  • id
    textread-only
    name
    textread-only
    artist
    textread-only
    album art
    textread-only
    every ringtone
    list of ringtoneread-only

    An element, addressed as every ringtone of <album>.

  • every timerlist of timer
    every saved timerlist of saved timer
    every alarmlist of alarm
    every ringtonelist of ringtone
    every ringtone albumlist of ringtone album
    stopwatchstopwatch session
    most recent ringtoneringtone | missing value
  • Each brings Wick to the front and selects the item, leaving it exactly where clicking it in the menu bar would.

    show timernothing

    Opens Wick's window with the timer selected.

    show alarmnothing

    Opens Wick's window with the alarm selected.

    show stopwatchnothing

    Opens 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, name

    A timer started counting down.

    timerPausedid, name

    A running timer was paused.

    timerResumedid, name

    A paused timer resumed.

    timerStoppedid, name

    A timer was stopped and removed.

    timerFinishedid, name

    A timer reached zero and began ringing.

    timerEditedid, name, field

    A timer property changed. field names the property that changed.

  • stopwatchStartedid, name

    The stopwatch started.

    stopwatchPausedid, name

    The stopwatch was paused.

    stopwatchResumedid, name

    The stopwatch resumed.

    stopwatchLapRecordedid, name, lap, lapDuration

    A lap was recorded. lap is the new lap count, lapDuration its length in seconds.

    stopwatchStoppedid, name, finalElapsed

    The stopwatch was stopped and reset. finalElapsed is the time it held in seconds.

  • alarmCreatedid, name

    An alarm was created.

    alarmDeletedid, name

    An alarm was deleted.

    alarmEnabledid, name

    An alarm was enabled and scheduled.

    alarmDisabledid, name

    An alarm was disabled.

    alarmEditedid, name, field

    An alarm property changed. field names the property that changed.

    alarmFiredid, name

    An alarm reached its time and began ringing.

    alarmSnoozedid, name, snoozedUntil

    A ringing alarm was snoozed. snoozedUntil is an ISO 8601 date.

    alarmStoppedid, name

    A ringing or snoozed alarm was stopped.