Optional handlerName of a handler (subroutine) in the script to call. Without it, the script runs from top to bottom.
Optional parametersArguments 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.
Optional permissionsSystem 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.
Options for PopClip.runAppleScript and PopClip.runAppleScriptFile.