This page describes Tcl® calls for building and sending AppleEvents. For information on the associated ToolBox calls, see INSIDE MACINTOSH: Interapplication Communication.



Building and sending AppleEvents


tclAE::PPCBrowser

Tcl wrapper for ToolBox PPCBrowser.

SYNOPSIS

tclAE::PPCBrowser [flags]

RESULT

A new TargetID.

DESCRIPTION

Display a dialog allowing the user to select an application to communicate with.

Flags are:

-p string
Prompt string
-l string
Label for application pane
-fc list
Creator-type list
-fn list
Port name list

tclAE::send

send the specified AppleEvent

SYNOPSIS

tclAE::send [flags] anAddress aeclass aeeventID [event parameters]*

RESULT

DESCRIPTION

Flags are:
-r
direct reply requested
-Q eventHandlerProc
queued reply requested (handler proc specified directly)
-q
queued reply requested (register handler with currentReplyHandler)
-p
print reply with AEPrint before returning it (if absent, return parsed AEDesc identifier).
-t timeout
specifies event timeout in ticks

tclAE::target

Manipulate targets

SYNOPSIS

tclAE::target option [arg É]

RESULT

Depends on the subcommand.

DESCRIPTION

Performs one of several target operations, depending on option. The legal options are:
tclAE::target info TargetID array
Given a target name, creates array in the current context, containing fields nameScript, name, portKindSelector, and locationKindSelector. If portKindSelector is ppcByCreatorAndType, there will be additional fields portCreator and portType. If portKindSelector is ppcByString, there will be an additional field portTypeStr.
tclAE::target names
Returns list of all available TargetIDs.
tclAE::target set TargetID keyword value
Set keyword element of target to value.

Copyright © 1999Ð2000 Jonathan E. Guyer
All rights reserved.

Last modified Monday, November 13, 2000 10:21:58 AM