Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!spool.mu.edu!snorkelwacker.mit.edu!apple!apple.com!jkc From: jkc@apple.com (John Kevin Calhoun) Newsgroups: comp.sys.mac.hypercard Subject: HyperCard 2.1 & Apple events (Was: Hypercard 2.1 & new file commands) Message-ID: <52862@apple.Apple.COM> Date: 14 May 91 18:04:32 GMT Article-I.D.: apple.52862 Sender: usenet@Apple.COM Organization: Apple Computer Inc, Cupertino, CA Lines: 24 In article <2746@lee.SEAS.UCLA.EDU> weiss@mott.seas.ucla.edu (Michael Weiss) writes: >OK, here's a request. Would it be possible (either through a HC update or >an XCMD) to send ANY AppleEvent? In other words...let's say that there is >a published list of AppleEvents (which I assume there is, or will be), and >you want to send an AppleEvent to all open applications or to just one >particular application. Would that be possible? HyperCard 2.1 doesn't have a built-in command for sending an arbitrary Apple event, but you can definitely send Apple events from an XCMD. We'll release an example of such an XCMD, called SendAppleEvent, to developers. Technical sidenote: An XCMD can easily convert the address of a program in HyperTalk (a string of the form "Zone:Macintosh:Program") into an Apple event address descriptor, by invoking an Apple event coercion handler that HyperCard installs. More later. Kevin Calhoun jkc@apple.com