Program Linking with IP Address in OS X
Program Linking with IP Address in OS X
- Subject: Program Linking with IP Address in OS X
- From: email@hidden
- Date: Wed, 2 Oct 2002 18:43:33 -0400
Summary: Program Linking to "eppc://nnn.nnn.nnn.nnn" with an IP address doesn't
work if the IP address isn't in a name server or NetInfo database.
Yesterday, I found and fixed a vexing problem with program linking from a script
running on an OS X box. (The OS version was 10.1.5). Here's a simple script
that illustrates the problem.
set F to "Finder"
using terms from application "Finder"
tell application F of machine "eppc://192.168.2.8"
get some item
end tell
end using terms
In the Event Log, the "get some item" tries and tries and tries, and finally
fails with an error -916 (the port was closed). I checked the target machine;
it had program linking enabled and was listening on port 3031. I could ping it
and could telnet to it at port 3031.
When I looked at the network traffic on the client machine, I saw a flurry of
Domain Name Server activity when the script was run. It was trying to resolve
192.168.2.8, apparently both forward and reverse. In this machine's
configuration, there wasn't a domain name entry for that address.
When we created a name for the target machine (using Netinfo on the client
machine) and used that name in place of the IP address, the script worked
properly.
I've verified this problem on a second OS 10.1.5 machine. That machine wasn't
networked, but the problem also shows up if you try to send the message to your
own IP address.
Now I have to wonder two things:
1. Why does the script need to resolve the IP address? AppleScript it doing
something like what it does with aliases?
2. Why wasn't this caught by Apple's testing? Did they only test in an
environment where every machine was in the name server?
--
Scott Norton Phone: +1-703-299-1656
DTI Associates, Inc. Fax: +1-703-706-0476
2920 South Glebe Road Internet: email@hidden
Arlington, VA 22206-2768 or email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.