reply

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
reply <string> [with keyword <aeKeyword>]
reply error <string>
Summary

Returns data to an application that sent LiveCode an Apple Event.

Introduced1.0
OSmac
Platformsdesktop, server
Parameters
NameTypeDescription
string

The string to send as Apple event data.

aeKeyword

The Apple event keyword.

Example
reply "Connection established"
reply line thisLine of field "AE Replies"
reply "45" with keyword "errn"
reply error "Not found."
RelatedCommand: send to program
Constant: return
Glossary: Apple Event, command, return, control structure
Description

Use the reply command to interact with another application via Apple events.

The reply command for inter-application communication is analogous to the return control structure for inter-handler communication.

When a program responds to an Apple event, it returns several different pieces of information. Each piece corresponds to an Apple event keyword. Use the reply with aeKeyword form of this command to specify which pieces you want to reply with.

The form

reply string

is equivalent to

reply string with keyword "----"

The form

reply error string 

is equivalent to

reply string with keyword "errs"

For more information about Apple events, refer to the section entitled "Apple Events Sent by the Mac OS" in the technical documentation section located on Apple's website.

Tagsnetworking