reply

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

# Metadata

Platforms: desktop, server OS: mac Introduced: 1.0 Security:

# Syntax

reply string [with keyword aeKeyword]

# Params

- string : The string to send as Apple event data. - aeKeyword : The Apple event keyword.

# Examples

reply "Connection established"

reply line thisLine of field "AE Replies"

reply "45" with keyword "errn"

reply error "Not found."

# 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] (http://developer.apple.com/documentation/coreservices/apple_events).

# Tags

# See

- **command:** send to program - **constant:** return - **glossary:** Apple Event, command, return, control structure