Re: Sending a message via Program Linking
Re: Sending a message via Program Linking
- Subject: Re: Sending a message via Program Linking
- From: Olivier Hamonnière <email@hidden>
- Date: Tue, 05 Dec 2000 01:21:29 +0100
>
I understand that I cannot use 'display dialog' or Akua's 'notify with
>
alert' because I can only send events to running applications on the other
>
mac. Is this correct? If so, is anyone aware of an AppleScriptable
>
app/utility that will allow me to send a message.
Actually, it is pretty safe to assume the Finder is running on the remote
machine, so you can use it to display your alert.
If the Finder is not the frontmost application, the usual notificatin will
be used to direct the user to Finder to see the alert. Or you even may make
the Finder the frontmost application, though it would probably be not a very
good design decision from a UI point of view.
Hence, your example may beome something like:
set remote_Finder to application "Finder" of machine "eppc://192.168.1.1"
tell remote_Finder
ignoring application responses
display dialog "this is my message"
end ignoring
end tell
I never had a chance to try it over IP, but it works over AppleTalk. You
should be OK with that!
Of course, if you want the user to be able to do more than just click OK to
dismiss the alert, you should use the method you described. Just keep in
mind that you can use the remote Finder to launch your "Display Dialog App"
when needed.
Cheers,
Olivier