Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'An AppleScript to look up NetBIOS names' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to look up NetBIOS names
Authored by: andyinindy on Dec 20, '04 01:12:41PM
For those that are interested, here is an AppleScript that will get IP addresses from netBIOS names. We needed this because we cannot connect using netBIOS names from OS X VNC applications.


tell application "Finder"
	activate
	display dialog "Please enter the NetBIOS name of the computer:" default answer ""
	set myName to the text returned of the result
end tell
--you will need to replace 159.242.130.24 with your own WINS server address
set myIP to (do shell script "nmblookup -U 159.242.130.24 -R " & myName & "| grep '<00>' | awk '{print $1}'")
tell application "Finder"
	display dialog myIP
end tell


[ Reply to This | # ]