Cancel event recipient

Command group Flag affected Reversible Execute on client Platform(s)
Apple events YES NO NO macOS

Syntax

Cancel event recipient {recipient-tag}

Description

This command cancels the specified Apple event recipient.

Example

Set event recipient {Microsoft Excel}
; do something
Yes/No message Question {Do you want to keep Excel?}
If flag false
  Cancel event recipient {Microsoft Excel}
Else
  ; continue processing...
End If