interface AppleScriptOptions {
    handler?: string;
    parameters?: (string | boolean)[];
    permissions?: "reminders"[];
}

Properties

handler?: string

Name of a handler (subroutine) in the script to call. Without it, the script runs from top to bottom.

parameters?: (string | boolean)[]

Arguments for the handler, in order — strings and booleans only. Requires handler. Passing values as handler parameters is preferable to interpolating them into the script source, which invites escaping bugs.

permissions?: "reminders"[]

System permissions the script needs, resolved right before it runs. PopClip shows the system consent prompt for any the user has not yet decided; if access is denied, the call rejects and PopClip directs the user to the relevant System Settings pane. The only recognised value is currently reminders.