{"identifier":97817,"topic":"Commands","name":"reply","text":"<code><pre>reply <i>expression<\/i> [with keyword \u00ac<i>\n                    aeKeyword <\/i>]<i>\n<\/i>reply error<i> expression\n<\/pre><\/code>\n<code>Expression<\/i> <\/code>is any text.<code> <i>AeKeyword<\/i> <\/code>is an Apple event keyword (a 4-character string). <br><br>\n\n The<code> reply <\/code>command answers an incoming Apple event. <br><br>\n\n  If you don\u2019t specify a keyword,<code> <i>expression<\/i>  <\/code>becomes the direct parameter of the reply. <br>\n<br>\nYou use<code> reply error<i> expression<\/i> <\/code> to notify the Apple event sender that an error has occurred. <br><br>\n\n You can use<code> reply error<i> expression<\/i> <\/code> to define your own error messages. This form is equivalent to<code> reply <i>expression<\/i> with keyword \"errs\"<\/code>.  The Apple event keyword \u201c<code>errn<\/code>\u201d sets the error number. <br><br>\n\n The reply command sets the result to<code> No current Apple event <\/code>when there is no current Apple event to handle. <br>\n","related":{"73723":"appleEvent","98925":"request"},"examples":"","demo":"","debug":{"9":["reply expression [wi"],"10":["You use reply error "]}}