Phil,
Here is (a snippet of) the code I use in "MacAT"
dim ae as AppleEvent
ae=newAppleEvent("FNDR","rest","MACS")
if not ae.send then
putLastLog( "Error", "Restarting this Macintosh via AppleEvents failed")
else
putLastLog( "OK", "The Macintosh was restarted successfully
(unless the next log reports otherwise)")
end if
At 1:29 PM +0930 31/7/2002, Phil Schneider wrote:
Can you restart the computer from a realbasic program and how do you read a
RTF file into a EditField?
Thanks,
Phil
--
Computers are one of the great inventions of our time. There are still as
many mistakes being made as ever, but now they're nobody's fault
---
Subscribe to the digest:
<mailto:realbasic-nug-digest at lists dot realsoftware dot com>
Unsubscribe:
<mailto:realbasic-nug-off at lists dot realsoftware dot com>
--
Cheers,
Dr Gerard Hammond
Bioinformatic Analyst
Garvan Institute of Medical Research, Sydney, Australia.
Arachnoleptic fit (n.) The frantic dance performed just after
you've accidentally walked through a spider web.
|