Re: Sending a message via Program Linking
Re: Sending a message via Program Linking
- Subject: Re: Sending a message via Program Linking
- From: "Geoff Graham" <email@hidden>
- Date: Mon, 4 Dec 2000 17:26:47 -0600
At 1:23 PM -0800 12/4/00, email@hidden wrote:
>
No, you can't tell the Finder of the remote mac to display dialog because
>
display dialog is part of the standard additions osax and you can't tell
>
something that's not running to do anything.
The standard additions are available to the remote Finder. They all work except for Display dialog, I'm guessing because they assume no one is there to dismiss a modal dialog. But you can do these things over AppleTalk:
tell application "Finder" of machine "kakapo"
activate
say "Important message waiting"
name of startup disk
set atemp to the result
set mylaunch to (atemp & ":" & "messagetemp.txt") as string
set x to open for access file mylaunch with write permission
set eof of x to 0
write "This is an Important mesage..." to x
close access x
open file mylaunch
end tell
there is also an app called "Message Window", that is made for your purpose, but you would have to plant it on the target machine. As to weather you could plant it via remote script, I haven't tried. As far as something needing to be open first, in the above example i create a file, but you could target an existing app (but not write over it ;-) and open it instead, and then send commands to it.
geoff