This page describes Tcl® calls for sending AppleEvents. For information on the associated ToolBox calls, see INSIDE MACINTOSH: Interapplication Communication.
tclAE::launch
Launch the specified application
tclAE::launch [flags] name
The Process Serial Number AEAddress
of the launched
application.
Launch the named app into the background. name
can
be any of bundle ID (bund(Ònet.sourceforge.alphatclÓ)
),
creator code ('ALFA'
), full application name
(Alpha.app
), or path (/Applications/AlphaX.app
).
name
must be a
path.
flags
can be:
-foreground
-newInstance
[launch]
ing such
applications won't insert the application into any system menu that
specifies running applications (although "About the Finder..." will list
it. The only way to get to such an app is through Alpha's
[switchTo]
, after which the application will finish launching.
The '-foreground
' option gets around this by launching the
application in the foreground instead.
tclAE::processes
List information about running processes
tclAE::processes
A list of lists for each running processes. Each process list consists of the name, signature, process type, launch time, PSN, and application path.
Return information about the running processes.
tclAE::send
send the specified AppleEvent
tclAE::send [flags] anAddress aeclass aeeventID [event parameters]*
flags
can be:
-dr
-s
flag)
-dx
-s
flag)
-p
-Q
eventHandlerProc
-q
-Q
.
-r
-s
kCurrentProcess
). Omit
anAddress
if -s
is used
-t timeout
-z transactionID
misc/begi
event).
--
tclAE::IPCListPorts
Tcl wrapper for ToolBox IPCListPorts
.
tclAE::IPCListPorts option [arg]*
A new TargetID
.
Displays information about available ports. Legal options are:
tclAE::IPCListPorts ppcNoLocation
tclAE::IPCListPorts ppcNBPLocation objStr
typeStr zoneStr
tclAE::IPCListPorts ppcXTIAddrLocation url
tclAE::PPCBrowser
Tcl wrapper for ToolBox PPCBrowser
.
tclAE::PPCBrowser [flags]
A new TargetID
.
Display a dialog allowing the user to select an application to communicate with.
Flags are:
-p string
-l string
-fc list
-fn list
Copyright © 1999Ð2004 Jonathan E. Guyer
All rights reserved.
Last modified Tuesday, March 2, 2004 11:46:37 PM
![]() |
|