Script problems
Script problems
- Subject: Script problems
- From: Michelle Steiner <email@hidden>
- Date: Wed, 17 Jan 2001 11:33:34 -0800
Here's the script.
property theapp : ""
if theapp is "" then
set theapp to choose application
end if
tell application "Claris Emailer"
set theWindow to the front window
if the class of theWindow is incoming message window then
set theMessage to the displayed message of theWindow
set theName to the display name of theSender
set theAddress to the address of theSender
using terms from application "Macjordomo"
tell theapp
Subscribe List "mylist" User theAddress Name theName
end tell
end using terms from
else
display dialog ,
"The front window must be an incoming message window." buttons "OK"
default button 1
end if
end tell
If I run the script form a machine that's connected to the same hub as
the target machine, the script runs perfectly. If, however, I run it
from any other machine (which means it will go through the DSL modem the
hub is connected to), one of two things happen.
If the script had been compiled on a machine connected to the target
machine, the script fails at the "Subscribe List" line, saying that it
can't find the target machine.
If the script is compiled anywhere else, I can't get the target machine
to show up in the choose-application dialog, no matter what IP syntax I
use.
any suggestions?
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | Hard as it may be to believe, my |
| email@hidden | life has been based on a true story. |
----------------------------------------------------------------------