realbasic-nug
[Top] [All Lists]

Re: Restart and RTF

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Restart and RTF
From: Dr Gerard Hammond <g dot hammond at garvan dot org dot au>
Date: Wed, 31 Jul 2002 14:04:14 +1000
Cc: Phil Schneider <pschneider at grpwise dot aphs dot sa dot edu dot au>
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.


<Prev in Thread] Current Thread [Next in Thread>