This page describes Tcl® calls for sending AppleEvents. For information on the associated ToolBox calls, see INSIDE MACINTOSH: Interapplication Communication.
tclAE::launchLaunch 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).
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::processesList 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::remoteProcessResolverGetProcessesList information about running processes on a remote machine
tclAE::remoteProcessResolverGetProcesses eppc://steveo.apple.com
A list of lists for each running processes. Each process list consists of
the application URL, name of the
application, uid of the user running the application, and
pid of the application.
Return information about the running processes on a remote machine.
Loosely equivalent to tclAE::processes on the local
machine.
tclAE::sendsend the specified AppleEvent
tclAE::send [flags] anAddress aeclass aeeventID [event parameters]*
flags can be:
-dr
-s flag)
-dx
-s flag)
-Q
eventHandlerProc
-q
-Q.
-r
-s
kCurrentProcess). Omit
anAddress if -s is used
-t timeout
-z transactionID
misc/begi event).
--
Copyright © 1999Ð2007 Jonathan E. Guyer
All rights reserved.
Last modified Tuesday, July 10, 2007 8:44:43 AM
![]() |
|