Re: Sending a message via Program Linking
Re: Sending a message via Program Linking
- Subject: Re: Sending a message via Program Linking
- From: Jed Verity <email@hidden>
- Date: Mon, 04 Dec 2000 10:02:23 -0800
Hi Simon,
I've tried to do exactly what you want to do using a stay-open app on the
receiving machines (about 35 in our office). I found it to be moderately
unreliable and, thus, not acceptable for the task at hand. However, after
posting my problems on the list, the good people of AppleScript QA tried to
reproduce the problems with no success (the primary problem was that, after
a couple of hours, an attempt to quit the stay-open app [or shut down, for
that matter] crashed the machine about 60% of the time). All machines were
iMacs with 9.0.4.
According to AppleScript QA, 9.1 has some bug-fixes for stay-open applets
and a bunch of the other AppleScript stuff. In the meantime, I've resorted
to signing people up for internet instant messaging (NetStickies, available
at downloads.com, was also a bit cumbersome and unreliable).
Hope you have better luck than I,
Jed
P.S. Can you tell a finder on a remote machine to display a dialog? I
haven't tried it. For example,
tell app "finder" of machine "eppc:127.0.0.1" to display dialog "This
doesn't work."
My favorite person, Simon Topliss, wrote this:
>
Does anyone know of a solution as to how to send a message via a dialog box
>
to another mac using program linking over IP?
>
>
I am setting up an internal workflow using AppleScript and MarkzScout and
>
need to send a message to the user when a job fails (MarkzScout moves the
>
file to 'Rejected' folder if it fails a test). At the moment I am able to
>
send them an email using Folder Actions and Entourage but need some way of
>
informing them instantly if an error occurs.
>
>
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.
>
>
Is the only solution to create a stay open app named, for example, "Display
>
Dialog App" on the remote apps with a handler something along the lines of:
>
>
-----------------------------------------
>
on displayDialog(errorMessage)
>
display dialog errorMessage
>
end displayDialog
>
-----------------------------------------
>
>
And then to call it from the server with:
>
>
-----------------------------------------
>
set remote_Finder to application "Finder" of machine "eppc://192.168.1.1"
>
set remote_app to application "Display Dialog App" of machine
>
"eppc://192.168.1.1"
>
>
using terms from application "Display Dialog App"
>
tell remote_app
>
ignoring application responses
>
displayDialog("this is my message")
>
end ignoring
>
end tell
>
end using terms from
>
-----------------------------------------
>
>
I don't know if the above would be solid enough for 20 - 30 users.
>
>
Any info or views appreciated.
>
>
Simon Topliss
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
~)~)~)~)~)~)~)~)~)~)~)~)~)
Jed Verity